Пример #1
0
        public MultiplayerClientGameplay(string server, int port) :
            base("multiplayerClient")
        {
            useEnqueueTileUpdates = false;

            stats = MultiplayerStats.Singleton;
            stats.Reset();
            stats.connected = true;

            client = new MultiplayerClient(server, port, this);
        }
        public override void Init(CubeWorld.World.CubeWorld world)
        {
            base.Init(world);

            stats = MultiplayerStats.Singleton;
            stats.Reset();
            stats.serverMode = true;
            stats.connected  = true;

            baseGameplay.Init(world);

            server = new MultiplayerServer(9999, this, this);
        }