public static void Load() { dispatcher = new PluginDispatcher(); boardStore = new BoardStore(dispatcher); info = new InfoBoxController(boardStore); // Game GameEvents.OnInMenu.Add(OnInMenu); GameEvents.OnGameStart.Add(OnGameStart); GameEvents.OnGameEnd.Add(OnGameEnd); // Player GameEvents.OnPlayerDraw.Add(OnPlayerDraw); GameEvents.OnPlayerGet.Add(OnPlayerGet); GameEvents.OnPlayerPlay.Add(OnPlayerPlay); GameEvents.OnPlayerCreateInPlay.Add(OnPlayerPlay); GameEvents.OnPlayerDeckToPlay.Add(OnPlayerPlay); // Opponent GameEvents.OnOpponentPlay.Add(OnOpponentPlay); GameEvents.OnOpponentCreateInPlay.Add(OnOpponentPlay); GameEvents.OnOpponentDeckToPlay.Add(OnOpponentPlay); dispatcher.OnActionReceived(ACTION_TYPE.INIT); }
public InfoBoxController(BoardStore b) { boardStore = b; boardStore.EmitChange += OnEmitChange; boardDmg = new DamageInfoBox("Board Damage", 0); savageDmg = new DamageInfoBox("Savage Roar", 2); doubleSavageDmg = new DamageInfoBox("Double Savage", 3); }