public BaseGameBoardCP(IGamePackageResolver mainContainer, ISkiaSharpGameBoard thisElement) { _mainContainer = mainContainer; _thisPro = mainContainer.Resolve <IProportionBoard>(TagUsed); //for games like countdown where each player has their own, i can't register. otherwise, would get hosed. _thisElement = thisElement; _thisElement.CPPaint += ThisElement_CPPaint; _thisElement.SingleClickBoard += ThisElement_SingleClickBoard; }
public PlayerBoardCP(CountdownGameContainer gameContainer, ISkiaSharpGameBoard thisElement, CountdownPlayerItem thisPlayer) : base(gameContainer.Resolver, thisElement) { _gameContainer = gameContainer; _thisPlayer = thisPlayer; //i think here this time. if i am wrong, rethink if (_gameContainer.GetNumberList == null) { throw new BasicBlankException("Nobody is handling get number list. Rethink"); } if (thisPlayer.NumberList.Count == 0) { thisPlayer.NumberList = _gameContainer.GetNumberList.Invoke(); } }