public override Systems CreateUpdateSystems(IContexts contexts1) { var gameModule = new CompositeGameModule(); var contexts = contexts1 as Contexts; var loadSceneSystem = new InitialSceneLoadingSystem(this, contexts, null, true); loadSceneSystem.AsapMode = true; gameModule.AddSystem(loadSceneSystem); gameModule.AddSystem(new InitTriggerObjectManagerSystem(contexts)); gameModule.AddSystem(new ServerScenePostprocessorSystem(contexts.session.commonSession)); //gameModule.AddModule(new ResourcePreloadModule(this)); var featrue = new ServerPrepareFeature("loadMapConfig", gameModule, contexts.session.commonSession.AssetManager); featrue.Add(new MapConfigInitModule(contexts, this)); if (contexts.session.commonSession.RoomInfo.MapId == 2) { contexts.session.commonSession.InitPosition = new Vector3(1906, 20, -1964); } else { contexts.session.commonSession.InitPosition = Vector3.zero; } return(featrue); }
public override Systems CreateUpdateSystems(IContexts contexts1) { var gameModule = new CompositeGameModule(); var contexts = contexts1 as Contexts; gameModule.AddModule(new ServerInitModule(contexts, this)); gameModule.AddModule(new SubResourceConfigurationInitModule(this)); var featrue = new ServerPrepareFeature("loadSubResourceConfig", gameModule, contexts.session.commonSession.AssetManager); return(featrue); }
public override Systems CreateUpdateSystems(IContexts contexts1) { var gameModule = new CompositeGameModule(); var contexts = contexts1 as Contexts; var loadSceneSystem = new InitialSceneLoadingSystem(this, contexts, null, true); loadSceneSystem.AsapMode = true; gameModule.AddSystem(loadSceneSystem); gameModule.AddSystem(new InitTriggerObjectManagerSystem(contexts)); gameModule.AddSystem(new ServerScenePostprocessorSystem(contexts.session.commonSession)); //gameModule.AddModule(new ResourcePreloadModule(this)); var featrue = new ServerPrepareFeature("loadMapConfig", gameModule, contexts.session.commonSession); return(featrue); }