Example #1
0
 public PlayerServerEntity(
     ITerrainSurfaceCalculator terrainSurfaceCalculator, 
     IServerEntityFactory serverEntityFactory, 
     TychaiaServer server, 
     TychaiaServerWorld serverWorld, 
     MxClient client, 
     int uniqueClientIdentifier)
 {
     this.m_TerrainSurfaceCalculator = terrainSurfaceCalculator;
     this.m_ServerEntityFactory = serverEntityFactory;
     this.m_Server = server;
     this.m_ServerWorld = serverWorld;
     this.m_Client = client;
     this.m_UniqueClientIdentifier = uniqueClientIdentifier;
 }
Example #2
0
        public ServerClientManager(
            IServerFactory serverFactory,
            TychaiaServer server,
            TychaiaServerWorld world,
            int uniqueID,
            string initialPlayerName,
            MxClient client)
        {
            this.m_Server = server;
            this.m_World = world;

            this.UniqueID = uniqueID;
            this.PlayerName = initialPlayerName;
            this.MxClient = client;
            this.Entities = new List<IServerEntity>();
            this.ClientChunkStateManager = serverFactory.CreateClientChunkStateManager(client);
        }
Example #3
0
        public void StartWorld(IKernel kernel)
        {
            kernel.Bind<TychaiaServer>().ToMethod(x => this);

            this.m_World = kernel.Get<TychaiaServerWorld>();
        }