Ejemplo n.º 1
0
        private void Loaded()
        {
            Instance = this;

            _middayTime   = new DateTime().AddHours(12).ToBinary();
            _midnightTime = new DateTime().ToBinary();

            EventPlayers = Facepunch.Pool.GetList <BasePlayer>();

            Unsubscribe(nameof(CanNetworkTo));
        }
Ejemplo n.º 2
0
        private void Unload()
        {
            Facepunch.Pool.FreeList(ref EventPlayers);

            if (!EventManager.IsUnloading)
            {
                EventManager.UnregisterEvent(Title);
            }

            Configuration = null;
            Instance      = null;
        }
Ejemplo n.º 3
0
 void OnServerInitialized()
 {
     LoadVariables();
     //RegisterGame();
     instance = this;
 }