Example #1
0
 public void Init()
 {
     _starsConfig    = GameConfig.Get <StarsConfig>();
     _universeConfig = GameConfig.Get <UniverseConfig>();
     _elements       = GameConfig.Get <ElementConfig>().ElementsList;
     GameModel.HandleGet <GalaxyModel>(OnGalaxyChange);
 }
Example #2
0
 public void Init()
 {
     _planetController = GameModel.Get <PlanetController>();
     _elements         = GameConfig.Get <ElementConfig>().ElementsDictionary;
     _universeConfig   = GameConfig.Get <UniverseConfig>();
     _debug            = GameModel.Get <GameDebug>();
 }
Example #3
0
    public void Init()
    {
        _starsConfig         = GameConfig.Get <StarsConfig>();
        _universeConfig      = GameConfig.Get <UniverseConfig>();
        _hexMapGenerator     = new HexMapGenerator();
        _planetUpdateCommand = GameModel.Get <PlanetPropsUpdateCommand>();

        GameModel.HandleGet <StarModel>(OnStarChange);
    }
Example #4
0
    // Use this for initialization
    void Start()
    {
        _universeConfig = GameConfig.Get <UniverseConfig>();
        GameMessage.Listen <HexClickedMessage>(OnHexChange);

        Altitude.SetProperty(R.Altitude.ToString());
        Temperature.SetProperty(R.Temperature.ToString());
        Pressure.SetProperty(R.Pressure.ToString());
        Humidity.SetProperty(R.Humidity.ToString());
        Radiation.SetProperty(R.Radiation.ToString());
        HexScore.SetProperty(R.HexScore.ToString());
    }
Example #5
0
 // Use this for initialization
 void Awake()
 {
     _universeConfig   = GameConfig.Get <UniverseConfig>();
     _resistanceConfig = GameConfig.Get <BellCurveConfig>();
 }
Example #6
0
 public void Init()
 {
     _universeConfig = GameConfig.Get <UniverseConfig>();
     GameModel.HandleGet <PlanetModel>(OnPlanetModel);
 }
Example #7
0
 public UniversManager()
 {
     universe    = new UniverseConfig();
     board       = new Board();
     fileManager = new FileManager();
 }