コード例 #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();
        }