Beispiel #1
0
 public BLCard(EFLContext eflContext, CardHub cardHub, PresenceHub presenceHub, ILogger <BLCard> loggerRFIDScanner)
 {
     _eflContext        = eflContext;
     _cardHub           = cardHub;
     _presenceHub       = presenceHub;
     _loggerRFIDScanner = loggerRFIDScanner;
 }
Beispiel #2
0
    void GeneratePlayerCardQueue()
    {
        CardHub clientPlayerCards = GameObject.FindGameObjectWithTag("CardHub").GetComponent <CardHub>();

        clientPlayerCards.aPlayerDeck.Clear();
        clientPlayerCards.initializePlayerDeck();
    }
Beispiel #3
0
    void GenerateInfectionCardDeque()
    {
        CardHub clientInfectionCards = GameObject.FindGameObjectWithTag("CardHub").GetComponent <CardHub>();

        clientInfectionCards.aInfectionDeck.Clear();
        clientInfectionCards.initializeInfectionDeck();
    }
Beispiel #4
0
    void GenerateInfectionCardsForClientFromSavedGame()
    {
        Destroy(GameObject.FindGameObjectWithTag("InfectionCardStackManager"));
        GameObject infectionCardsStackGO = Instantiate(infectionCardsManagerPrefab);
        CardHub    clientInfectionCards  = infectionCardsStackGO.GetComponent <CardHub>();

        Persistence.pe_infectionCardStack pe_infectionCardStack = GameManager.instance.pe_infectionCardStack;
    }
        public CardController(EFLContext eflContext, CardHub cardHub, ILogger <CardController> logger, BLCard blCard)
        {
            _eflContext = eflContext;
            _cardHub    = cardHub;

            _logger = logger;

            _blCard = blCard;
        }
Beispiel #6
0
    void GeneratePlayerCardsForClientFromSavedGame()
    {
        Destroy(GameObject.FindGameObjectWithTag("PlayerCardStackManager"));
        GameObject playerCardsStackGO = Instantiate(playerCardsManagerPrefab);
        CardHub    clientPlayerCards  = playerCardsStackGO.GetComponent <CardHub>();

        Persistence.pe_playerCardStack pe_playerCardStack = GameManager.instance.pe_playerCardStack;
        // clientPlayerCards.loadCardState(/*  Load each player's cards  */);
    }
Beispiel #7
0
    public IEnumerator GenerateInfectionCardsForClient()
    {
        GameObject infectionCardsStackGO = Instantiate(infectionCardsManagerPrefab);
        CardHub    clientInfectionCards  = infectionCardsStackGO.GetComponent <CardHub>();

        if (PhotonNetwork.isMasterClient)
        {
            yield return(new WaitForSeconds(5f));

            GetComponent <PhotonView>().RPC("GenerateInfectionCardDeque", PhotonTargets.All, new object[] { });
        }
    }
Beispiel #8
0
    public IEnumerator GeneratePlayerCardsForClient()
    {
        Destroy(GameObject.FindGameObjectWithTag("PlayerCardStackManager"));
        GameObject playerCardsStackGO = Instantiate(playerCardsManagerPrefab);
        CardHub    clientPlayerCards  = playerCardsStackGO.GetComponent <CardHub>();

        if (PhotonNetwork.isMasterClient)
        {
            yield return(new WaitForSeconds(5f));

            GetComponent <PhotonView>().RPC("GeneratePlayerCardQueue", PhotonTargets.All, new object[] { });
        }
    }