Esempio n. 1
0
        public void StartServer()
        {
            if (GameServer != null)
            {
                return;
            }

            var serverWorldGO = new GameObject("Server World");
            var serverWorld   = serverWorldGO.AddComponent <World>();

            var ctx = new ServerGameContext()
            {
                World = serverWorld,
                Port  = Port,
                ReplicaManagerSettings = ReplicaManagerSettings,
                LagSettings            = LagSettings
            };

            GameServer = CreateServer(ctx);

            OnServerRunning();
        }
Esempio n. 2
0
 public GameModeBase(ServerGame server)
 {
     this.server = server;
     InstantiateGameState();
 }