Esempio n. 1
0
            public override void Read(BinaryReader br, int i)
            {
                Name = Memory.Strings.Read(Strings.FileID.KERNEL, id, i * 2);
                //0x0000	2 bytes Offset to name
                Description = Memory.Strings.Read(Strings.FileID.KERNEL, id, i * 2 + 1);
                //0x0002	2 bytes Offset to description
                br.BaseStream.Seek(4, SeekOrigin.Current);
                AP = br.ReadByte();
                //0x0004  1 byte AP Required to learn ability
                //J_Flags = new BitArray(br.ReadBytes(3));
                byte[] tmp = br.ReadBytes(3);
                J_Flags = (JunctionAbilityFlags)(tmp[2] << 16 | tmp[1] << 8 | tmp[0]);

                //0x0005  3 byte J_Flag
            }
 private JunctionAbilities(FF8String name, FF8String description, byte ap, JunctionAbilityFlags jFlags)
     : base(name, description, ap, Icon)
     => JFlags = jFlags;