Exemple #1
0
        public static ActionSendHeartbeat Create(ServerSystemHeartbeat s_, Server server_)
        {
            ActionSendHeartbeat a = new ActionSendHeartbeat();

            a.s      = s_;
            a.server = server_;
            return(a);
        }
Exemple #2
0
 public override void Update(Server server, float dt)
 {
     elapsed += dt;
     while (elapsed >= 60)
     {
         elapsed -= 60;
         if ((server.Public) && (server.config.Public))
         {
             d_Heartbeat.GameMode = server.gameMode;
             server.serverPlatform.QueueUserWorkItem(ActionSendHeartbeat.Create(this, server));
         }
     }
 }