예제 #1
0
        protected override void HandleWorkerConnectionEstablished()
        {
            GameObjectCreationHelper.EnableStandardGameObjectCreation(Worker.World, new SyncTransObjectCreation(Worker), entityRepresentationMapping);
            WorkerUtils.AddClientSystems(Worker.World, false);

            this.ConnectionState = ConnectionState.ConnectionEstablished;
        }
        protected override void HandleWorkerConnectionEstablished()
        {
            WorkerUtils.AddClientSystems(Worker.World, this.gameObject, false);

            var fieldSystem = Worker.World.GetExistingSystem <FieldQueryClientSystem>();

            if (fieldSystem != null)
            {
                fieldSystem.OnQueriedEvent += CreatePlayerRequest;
                fieldSystem.SetXZPosition(pos.x, pos.z);
            }
        }
예제 #3
0
 protected override void HandleWorkerConnectionEstablished()
 {
     GameObjectCreationHelper.EnableStandardGameObjectCreation(Worker.World, new SyncTransObjectCreation(Worker), entityRepresentationMapping);
     WorkerUtils.AddGameLogicSystems(Worker.World);
 }
 protected override void HandleWorkerConnectionEstablished()
 {
     WorkerUtils.AddStrategyLogicSystems(Worker.World, entityRepresentationMapping);
 }
예제 #5
0
 protected override void HandleWorkerConnectionEstablished()
 {
     WorkerUtils.AddGameLogicSystems(Worker.World, this.gameObject);
 }