Exemple #1
0
        public static void Init()
        {
            Rom.Seek(Address);
            for (int i = 0; i < Entries; i++)
            {
                var pd = new PsiData();
                pd.index = i;

                Rom.SeekAdd(4);

                pd.Type = Rom.ReadByte();

                Rom.SeekAdd(7);

                pd.Pp = Rom.ReadUShort();

                Rom.SeekAdd(10);

                pd.Target = Rom.ReadByte();

                Rom.SeekAdd(5);

                pd.AmountLow  = Rom.ReadUShort();
                pd.AmountHigh = Rom.ReadUShort();

                Rom.SeekAdd(13);

                pd.Animation[0] = Rom.ReadByte();
                pd.Animation[1] = Rom.ReadByte();

                Rom.SeekAdd(7);

                PsiEntries[i] = pd;
            }
        }
Exemple #2
0
        public static void Init()
        {
            Rom.Seek(Address);
            for (int i = 0; i < Entries; i++)
            {
                var pd = new PsiData();
                pd.index = i;

                Rom.SeekAdd(4);

                pd.Type = Rom.ReadByte();

                Rom.SeekAdd(7);

                pd.Pp = Rom.ReadUShort();

                Rom.SeekAdd(10);

                pd.Target = Rom.ReadByte();

                Rom.SeekAdd(5);

                pd.AmountLow = Rom.ReadUShort();
                pd.AmountHigh = Rom.ReadUShort();

                Rom.SeekAdd(13);

                pd.Animation[0] = Rom.ReadByte();
                pd.Animation[1] = Rom.ReadByte();

                Rom.SeekAdd(7);

                PsiEntries[i] = pd;
            }
        }