Example #1
0
    public void Init(GameOptions gameOptions)
    {
        Options = gameOptions;

        Players      = new List <GamePlayer>(gameOptions.Players);
        _uiManager   = Options.UIManager;
        HexMapDrawer = HexMapDrawer.Instance;
        _spawner     = Spawner.Instance;
        Players.ForEach(p => p.Characters.ForEach(c => c.Abilities.ForEach(a => a.Awake())));
        NKMRandom.OnValueGet += (name, value) => Console.GameLog($"RNG: {name}; {value}");
        IsInitialized         = true;
    }
Example #2
0
    public void Init(GameOptions gameOptions)
    {
        _options = gameOptions;

        Players      = new List <GamePlayer>(gameOptions.Players);
        UIManager    = _options.UIManager;
        HexMapDrawer = HexMapDrawer.Instance;
        _spawner     = Spawner.Instance;
//		Spawner.Init(this);

//		Players.ForEach(p => Debug.Log(p.Characters.Count));
//		Debug.Log("Game started!");
        IsInitialized = true;
    }