public GameContext(PlayerList playerList, TurnController turnController, CardController cardController, PlayingField playingField) { playerListContext = playerList.GetContext(); turnControllerContext = turnController.GetContext(); playingFieldContext = playingField.GetContext(); cardControllerContext = cardController.GetContext(); }
/// <summary> /// Methode om GameContext te maken vanuit de gegeven bytes. /// </summary> /// <param name="data"></param> public void Deserialize(byte[] data) { GameContext ctx = (GameContext)GameFiles.Deserialize(data); playerListContext = ctx.playerListContext; turnControllerContext = ctx.turnControllerContext; cardControllerContext = ctx.cardControllerContext; playingFieldContext = ctx.playingFieldContext; }