Ejemplo n.º 1
0
        public static TViewModel CreateViewModel <TViewModel>(this ISystemLoader loader, string identifier = null)
            where TViewModel : ViewModel
        {
            var controller = uFrameKernel.Container.Resolve <Controller>(typeof(TViewModel).Name);

            return((TViewModel)controller.Create(identifier ?? Guid.NewGuid().ToString()));
        }
Ejemplo n.º 2
0
 public ServerGameService(
     EntityWorld world,
     IServerSettingsService settingsService,
     IScriptService scriptService,
     IDataService dataService,
     IAppService appService,
     IServerNetworkService networkService,
     IScreenService screenService,
     IObjectMapper objectMapper,
     ISystemLoader systemLoader)
 {
     _world = world;
     _settingsService = settingsService;
     _scriptService = scriptService;
     _dataService = dataService;
     _appService = appService;
     _networkService = networkService;
     _screenService = screenService;
     _objectMapper = objectMapper;
     _systemLoader = systemLoader;
 }
Ejemplo n.º 3
0
 public GameManager(
     EntityWorld world,
     SpriteBatch spriteBatch,
     IGraphicsManager graphicsManager,
     ISystemLoader systemLoader,
     IScreenManager screenManager,
     IScreenFactory screenFactory,
     IInputManager inputManager,
     ICameraManager cameraManager,
     IScriptManager scriptManager
     )
 {
     _world = world;
     _spriteBatch = spriteBatch;
     _graphicsManager = graphicsManager;
     _systemLoader = systemLoader;
     _screenManager = screenManager;
     _screenFactory = screenFactory;
     _inputManager = inputManager;
     _cameraManager = cameraManager;
     _scriptManager = scriptManager;
 }
Ejemplo n.º 4
0
 public GameManager(
     EntityWorld world,
     SpriteBatch spriteBatch,
     IGraphicsManager graphicsManager,
     ISystemLoader systemLoader,
     IScreenManager screenManager,
     IScreenFactory screenFactory,
     IInputManager inputManager,
     ICameraManager cameraManager,
     IScriptManager scriptManager,
     IContentManager contentManager)
 {
     _world           = world;
     _spriteBatch     = spriteBatch;
     _graphicsManager = graphicsManager;
     _systemLoader    = systemLoader;
     _screenManager   = screenManager;
     _screenFactory   = screenFactory;
     _inputManager    = inputManager;
     _cameraManager   = cameraManager;
     _scriptManager   = scriptManager;
     _contentManager  = contentManager;
 }
Ejemplo n.º 5
0
 public void LoadSystems(ISystemLoader systemLoader)
 {
     systemLoader.LoadSystems(this);
 }