Example #1
0
 private static void Server_ServerTick(object sender, ulong e)
 {
     if (AutoSave.Allow())
     {
         WorldStorage.AutoSave(WorldStorage.SaveName, new WorldDiskSink());
     }
 }
Example #2
0
        private static void TickTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            if (World.Data.World.Mode == EngineMode.ServerOnly)
            {
                ServerSendRecieve.SendAll(new ServerTickMessage());
            }
            else
            {
                Uni.Tick(Uni.GameTick + 1);
            }

            if (AutoSave.Allow())
            {
                WorldStorage.AutoSave(WorldStorage.SaveName, new WorldDiskSink());
            }
        }