public bool Melee;                  //0x000B	1 byte Melee Weapon?

            public void Read(BinaryReader br, int string_id = 0)
            {
                Name = Memory.Strings.Read(Strings.FileID.KERNEL, id, string_id);
                br.BaseStream.Seek(2, SeekOrigin.Current);
                Renzokuken   = (Renzokeken_Level)br.ReadByte();   //0x0002	1 byte Renzokuken finishers
                Unknown0     = br.ReadByte();                     //0x0003	1 byte Unknown
                Character    = (Saves.Characters)br.ReadByte();   //0x0004	1 byte Character ID
                Attack_type  = (Attack_Type)br.ReadByte();        //0x0005	1 bytes Attack Type
                Attack_power = br.ReadByte();                     //0x0006	1 byte Attack Power
                HIT          = br.ReadByte();                     //0x0007	1 byte Attack Parameter
                STR          = br.ReadByte();                     //0x0008	1 byte STR Bonus
                Tier         = br.ReadByte();                     //0x0009	1 byte Weapon Tier
                CRIT         = br.ReadByte();                     //0x000A	1 byte Crit Bonus
                Melee        = br.ReadByte() == 0 ? false : true; //0x000B	1 byte Melee Weapon?
            }
示例#2
0
            private byte[] _LUCK;   //0x0020; 4 bytes; LUCK

            public void Read(BinaryReader br, Saves.Characters char_id)
            {
                this.char_id = char_id;
                //Offset = br.ReadUInt16(); //0x0000; 2 bytes; Offset to character name
                //Squall and Rinoa have name offsets of 0xFFFF because their name is in the save game data rather than kernel.bin.
                br.BaseStream.Seek(2, SeekOrigin.Current);
                Crisis     = br.ReadByte();                                    //0x0002; 1 byte; Crisis level hp multiplier
                Gender     = br.ReadByte() == 0 ? Gender.Male : Gender.Female; //0x0003; 1 byte; Gender; 0x00 - Male 0x01 - Female
                LimitID    = br.ReadByte();                                    //0x0004; 1 byte; Limit Break ID
                LimitParam = br.ReadByte();                                    //0x0005; 1 byte; Limit Break Param used for the power of each renzokuken hit before finisher
                _EXP       = br.ReadBytes(2);                                  //0x0006; 2 bytes; EXP modifier
                _HP        = br.ReadBytes(4);                                  //0x0008; 4 bytes; HP
                _STR       = br.ReadBytes(4);                                  //0x000C; 4 bytes; STR
                _VIT       = br.ReadBytes(4);                                  //0x0010; 4 bytes; VIT
                _MAG       = br.ReadBytes(4);                                  //0x0014; 4 bytes; MAG
                _SPR       = br.ReadBytes(4);                                  //0x0018; 4 bytes; SPR
                _SPD       = br.ReadBytes(4);                                  //0x001C; 4 bytes; SPD
                _LUCK      = br.ReadBytes(4);                                  //0x0020; 4 bytes; LUCK
                int hp = HP(8);
            }