예제 #1
0
 private static void OnReady()
 {
     if (WorldEditHack.Ready != null)
     {
         WorldEditHack.Ready();
     }
 }
예제 #2
0
        public static void Initialize()
        {
            if (Kernel32.GetModuleHandle("worldedit.exe") == IntPtr.Zero)
            {
                throw new Exception("Attempted to initialize " + typeof(WorldEditHack).Name + " before 'worldedit.exe' has been loaded.");
            }

            WorldEditHack.IsReady = true;
            WorldEditHack.OnReady();
        }