Exemplo n.º 1
0
        private void DebuggerForm_Shown(object sender, EventArgs e)
        {
            InitForms();

            Trace("Loading .yydebug...");
            GameData = new YYDebug(File.OpenRead(YYDEBUG_PATH));
            GameData.Load();
            Trace("Loaded!");

            DebugSocket       = new RunnerSocket();
            DebugSocket.YYDbg = GameData;
            Manager           = new DebuggerManager(DebugSocket);
            Connect();
        }
Exemplo n.º 2
0
        public void Deserialize(BinaryReader reader, DebuggerManager manager)
        {
            ID = reader.ReadUInt32();
            BuiltinVariables = new List <GMValue>();
            ReadBuiltins(reader);
            uint custom_var_len = reader.ReadUInt32();

            InstVariables = new List <GMValue>((int)custom_var_len);
            for (int i = 0; i < custom_var_len; i++)
            {
                var _val = manager.ReadGMValueFromBuffer(reader);
                InstVariables.Add(_val);
            }
            int obj_index = (int)BuiltinVariables.Where(v => v.Name == "object_index").First().Number;

            ObjectRef  = manager.RunnerLayout.Objects[obj_index];
            ObjectName = ObjectRef.Name;
        }