/// <summary>
        /// Prepares this game to work as a server.
        /// </summary>
        public virtual void StartServer()
        {
            serverManager = new TinyNetServer();

            serverManager.StartServer(port, maxNumberOfPlayers);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TinyNetServer"/> class.
 /// </summary>
 public TinyNetServer() : base()
 {
     instance = this;
 }