コード例 #1
0
        public CratesCollectedStruct Parse_Crates_Collected_For_Player()
        {
            CratesCollectedStruct Crates = new CratesCollectedStruct();

            Crates.MoneyCrates            = this.Read_32Bits();
            Crates.UnitCrates             = this.Read_32Bits();
            Crates.ParabombCrates         = this.Read_32Bits();
            Crates.HealCrates             = this.Read_32Bits();
            Crates.StealthCrates          = this.Read_32Bits();
            Crates.ExplosionCrates        = this.Read_32Bits();
            Crates.NapalmDeathCrates      = this.Read_32Bits();
            Crates.SquadCrates            = this.Read_32Bits();
            Crates.MapReshroud            = this.Read_32Bits();
            Crates.MapRevealCrates        = this.Read_32Bits();
            Crates.SonarPulseCrates       = this.Read_32Bits();
            Crates.ArmorUpgradeCrates     = this.Read_32Bits();
            Crates.SpeedUpgradeCrates     = this.Read_32Bits();
            Crates.FirepowerUpgradeCrates = this.Read_32Bits();
            Crates.OneShotNukeCrates      = this.Read_32Bits();
            Crates.TimeQuakeCrates        = this.Read_32Bits();
            Crates.IronCurtainCrates      = this.Read_32Bits();
            Crates.ChronoVortexCrates     = this.Read_32Bits();

            return(Crates);
        }
コード例 #2
0
        public void Parse_Crates_Collected_Info(string ID)
        {
            int PlayerNum = Get_Player_Number_From_ID(ID);

            this.Read_32Bits(); // Read garbage

            CratesCollectedStruct Crates = Parse_Crates_Collected_For_Player();

            this.PlayerCratesCollected[PlayerNum - 1] = Crates;
        }