Exemple #1
0
 public BaseGameBoardCP(IGamePackageResolver mainContainer) //we need the advanced one here though.
 {
     _thisPro       = mainContainer.Resolve <IProportionBoard>(TagUsed);
     _mainContainer = mainContainer;
     if (mainContainer.RegistrationExist <ISkiaSharpGameBoard>(TagUsed))
     {
         LinkBoard();
     }
 }
Exemple #2
0
        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;
        }