Beispiel #1
0
        private IntPtr Unknown__SetStateHook(IntPtr @this, bool endMap, bool endEngine)
        {
            try
            {
                if (endMap || IsInMap)
                {
                    IsInMap = false;
                    PluginSystem.OnMapEnd();
                    if (endEngine)
                    {
                        PluginSystem.OnProgramExit();
                    }
                }
                else
                {
                    IsInMap = true;
                    PluginSystem.OnMapLoad();
                }
            }
            catch (Exception e)
            {
                Trace.WriteLine("Unhandled Exception in " + typeof(EntryPoint).Name + ".Unknown__SetStateHook!");
                Trace.WriteLine(e.ToString());
            }

            return(Unknown__SetState(@this, endMap, endEngine));
        }
Beispiel #2
0
 private void OnMapEnd()
 {
     PluginSystem.OnMapEnd();
 }