Пример #1
0
 public void MoveToPreviousLevel()
 {
     if (!IsEG2)
     {
         //SceneManager.ActionSceneInstance._currentLocation.RegionPosition
         int pos = SceneManagerEG1.Read <int>(Program, -0xc, 0x90, 0x8);
         if (pos > 0)
         {
             //SceneManager.ActionSceneInstance._nextLocation.RegionPosition
             SceneManagerEG1.Write <int>(Program, pos - 1, -0xc, 0x94, 0x8);
         }
     }
 }
Пример #2
0
        public void PatchSheepRooms(bool enable)
        {
            if (!sheepRoomPatch.HasValue || enable != sheepRoomPatch.Value)
            {
                if (!IsEG2 || IsSheepObtainedHere.GetPointer(Program) == IntPtr.Zero)
                {
                    return;
                }

                IsSheepObtainedHere.Write <byte>(Program, (byte)(enable ? 0x0 : 0xff));

                sheepRoomPatch = enable;
            }
        }