using System;
using posadzka.code;
using RebootKit.Engine.Services.Game;
using RebootKit.Engine.Services.Simulation;
using UnityEngine;

namespace Code {
    [CreateAssetMenu(menuName = GameConsts.AssetMenu + "Gameplay Game Mode")]
    public class GameplayGameModeAsset : GameModeAsset {
        [Serializable]
        public class Config {
            public WorldConfigAsset WorldConfig;
        }

        [SerializeField]
        private Config _config;

        public override void ConfigureGameMode(GameMode gameMode) {
            gameMode.AddController(new GameplayGameModeController(_config));
        }
    }
}