RunClients() 공개 정적인 메소드

SV_RunClients
public static RunClients ( ) : void
리턴 void
예제 #1
0
        /// <summary>
        /// Host_ServerFrame
        /// </summary>
        public void ServerFrame( )
        {
            // run the world state
            Programs.GlobalStruct.frametime = ( Single )FrameTime;

            // set the time and clear the general datagram
            Server.ClearDatagram( );

            // check for new clients
            Server.CheckForNewClients( );

            // read client messages
            Server.RunClients( );

            // move things around and think
            // always pause in single player if in console or menus
            if (!Server.sv.paused && (Server.svs.maxclients > 1 || Keyboard.Destination == KeyDestination.key_game))
            {
                Server.Physics( );
            }

            // send all messages to the clients
            Server.SendClientMessages( );
        }