Ejemplo n.º 1
0
 (Strings.FileID fileKey, int sectionKey, int id, FF8StringReference Value) Get(Strings.FileID fileID,
                                                                                int sectionID, int inputID, FF8StringReference value)
 => (fileID, sectionID, inputID, value);     // this is for having a tuple instead of anonymous type
Ejemplo n.º 2
0
            private RinoaLimitBreaksPart2(BinaryReader br, int i)
            {
                RinoaLimit2ID = i;
                switch (i)
                {
                case 0:
                    Angelo = Angelo.Cannon;
                    break;

                case 1:
                    Angelo = Angelo.Strike;
                    break;

                case 2:
                    Angelo = Angelo.Invincible_Moon;
                    break;

                case 3:
                    Angelo = Angelo.Wishing_Star;
                    break;

                case 4:
                    Angelo = Angelo.Angel_Wing;
                    break;

                default:
                    Angelo = Angelo.None;
                    break;
                }
                var offset = br.ReadUInt16();

                Name = new FF8StringReference(Memory.Strings[Strings.FileID.Kernel].GetArchive(), Memory.Strings[Strings.FileID.Kernel].GetFileNames()[0],
                                              Memory.Strings[Strings.FileID.Kernel].GetFiles().SubPositions[(int)((Strings.Kernel)Memory.Strings[Strings.FileID.Kernel]).StringLocations[ID].Item1] + offset, settings: (FF8StringReference.Settings.Namedic | FF8StringReference.Settings.MultiCharByte));
                //0x0000	2 bytes Offset to name
                //br.BaseStream.Seek(2, SeekOrigin.Current);
                MagicID = (MagicID)br.ReadUInt16();
                //0x0002  2 bytes Magic ID
                AttackType = (AttackType)br.ReadByte();
                //0x0004  1 byte Attack type
                AttackPower = br.ReadByte();
                //0x0005  1 byte Attack power
                AttackFlags = (AttackFlags)br.ReadByte();
                //0x0006  1 byte Attack flags
                Unknown0 = br.ReadByte();
                //0x0007  1 byte Unknown
                Target = (Target)br.ReadByte();
                //0x0008  1 byte Target info
                Unknown1 = br.ReadByte();
                //0x0009  1 byte Unknown
                HitCount = br.ReadByte();
                //0x000A  1 byte Hit Count
                Element = (Element)br.ReadByte();
                //0x000B  1 byte Element Attack
                ElementPercent = br.ReadByte();
                //0x000C  1 byte Element Attack %
                StatusAttack = br.ReadByte();
                //0x000D  1 byte Status Attack Enabler
                Statuses0 = (PersistentStatuses)br.ReadUInt16();
                //0x000E  2 bytes status_0; //statuses 0-7
                Statuses1 = (BattleOnlyStatuses)br.ReadUInt32();
                //0x0010  4 bytes status_1; //statuses 8-39
            }