예제 #1
0
        public static Guid CreateBpmSystem(AcManContext context)
        {
            var endSystemRepository = new EndSystemRepository(context);
            var endSystem           = new EndSystem {
                Id          = AcmanConstants.EndSystem.BpmonlineWorkTsi,
                Name        = "Bpm'online work TSI",
                EntityState = AcmanEntityState.Added
            };

            return(endSystemRepository.Add(endSystem));
        }
예제 #2
0
    public HomelandsGame(GameManager gameManager, GameSettings settings)
    {
        Debug.Log("Constructing Homelands Game");

        _gameManager = gameManager;
        _settings    = settings;

        _tickSystem   = FTickSystem.Make(this, _settings._tickSettings);
        _statsBuilder = new StatsBuilderBasic(this);
        _viewer       = new Viewer(this);

        IMapBuilder mapBuilder = MapBuilderFactory.Make(_settings._mapSettings._mapType, _settings._mapSettings._tileShape, this);

        _locations    = mapBuilder.Make(_settings._mapSettings);
        _inputHandler = new InputHandler(this);

        _playerSystem    = new PlayerSystem(this, _settings._playerSettings._numberOfPlayers);
        _endSystem       = FEndSystem.Make(_settings._endCondition, this);
        _startPositioner = FStartPositioner.Make(eStartPosition.OppositeCorners, this);
        InitializePlayerStarts();
    }