Exemplo n.º 1
0
        private Dictionary <string, byte[]> GetOutputData(Trainer trainer)
        {
            var outputData = new Dictionary <string, byte[]>();

            outputData.Add("write_pos_ally", trainer.GET_LOCAL_POS());
            outputData.Add("write_hp_ally", trainer.GET_LOCAL_HP());

            //trainer.FREEZE_ENEMY_POINTERS();

            var enemyPtr = trainer.GET_POS_ENEMY_POINTER();

            if (enemyPtr != null)
            {
                outputData.Add("write_pos_enemy_pointer", enemyPtr);
                outputData.Add("write_pos_enemy_value", trainer.GET_POS_ENEMY_VALUE());
            }

            //trainer.UNFREEZE_ENEMY_POINTERS();

            outputData.Add("pos_enemy_data", Utils.ObjectToByteArray(trainer.GET_POS_ENEMY_DATA()));
            outputData.Add("hp_enemy_data", Utils.ObjectToByteArray(trainer.GET_HP_ENEMY_DATA_FOR_CLIENT()));
            outputData.Add("ally_area", trainer.GET_LOCAL_AREA());

            outputData.Add("hp_gigante", trainer.GET_GIGANTE_HP());
            outputData.Add("pos_gigante", trainer.GET_GIGANTE_POS());

            return(outputData);
        }