Beispiel #1
0
        public ScriptParser(string script, string game)
        {
            // Initialize the script we will read from.
            b         = new BinaryReader(File.Open(script, FileMode.Open));
            Handler   = new CommandsListHandler(game);
            Functions = new Dictionary <int, Script>();
            Movements = new Dictionary <int, List <Movement> >();

            // Process the container here.
            Addresses = GetScriptAddresses();
            Scripts   = ReadScripts();

            // We are done reading from it.
            b.Close();
        }
Beispiel #2
0
 public ScriptLexer(Dictionary <int, Script> scripts, Dictionary <int, Script> functions, Dictionary <int, List <Movement> > movements, string script, string game)
 {
     cmds = new CommandsListHandler(game);
     WriteScript(scripts, functions, movements, script, game);
 }