예제 #1
0
        public static bool HandleTerrainClick(Location loc)
        {
            if (_handleTerrainClick == null)
                _handleTerrainClick = Manager.Memory.RegisterDelegate<HandleTerrainClickDelegate>((IntPtr)Pointers.World.HandleTerrainClick, true);

            return _handleTerrainClick(new TerrainClickEvent { GUID = 0ul, Position = loc, Button = MouseButton.None | MouseButton.Left });
        }
예제 #2
0
        public static bool HandleTerrainClick(Location loc)
        {
            if (_handleTerrainClick == null)
            {
                _handleTerrainClick =
                    Manager.Memory.RegisterDelegate <HandleTerrainClickDelegate>(
                        (IntPtr)Pointers.World.HandleTerrainClick, true);
            }

            return
                (_handleTerrainClick(new TerrainClickEvent
            {
                GUID = 0ul,
                Position = loc,
                Button = MouseButton.None | MouseButton.Left
            }));
        }