sini 32 Share Posted December 3, 2016 Galaxy Scripts 1). Purpose The purpose of the Galaxy framework is to create a robust simple way to develop scripts for the Dreambot client. Galaxy employs Typescript which is prepackaged using Webpack to run on the Java 8 Nashorn engine. This allows for a user to simply run the control scripts and then instruct the controller which script to run, and during development, easily reload the script without having to stop or restart the script the Dreambot client is currently executing. Galaxy defines an simple way to script, by trying to keep much of the logic code as slim as possible by employing a pattern similar to the Entity Component System architecture. 2). Links - Repository - Typescript 3). Examples: This is an example of using the Galaxy API to configure a script and access a script state component. import {Script} from './script'; import {ExampleState} from "./state/example"; import {Galaxy} from "./galaxy"; Galaxy.initializer((script : Script) => { const state = script.getState(ExampleState); state.meow(); }); Link to comment Share on other sites More sharing options...
Scrivus 172 Share Posted December 3, 2016 Does this bring more advantages than the DreamBot API? Link to comment Share on other sites More sharing options...
sini 32 Author Share Posted December 3, 2016 Does this bring more advantages than the DreamBot API? Than using the API? It has to rely on the hooks from Dreambot to do anything. In the future? It may. Just depends on what I personally need to do my scripts. Link to comment Share on other sites More sharing options...
Explicit 213 Share Posted December 3, 2016 ES6 is beautiful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.