Exemplo n.º 1
0
        public void Visit(IDrawPileInternal <TElement> drawPile)
        {
            var pile = (JObject)Content[JsonProperties.DrawPile];

            Load(pile, drawPile);
            drawPile.ShuffleCount = (uint)pile[JsonProperties.ShuffleCount];
        }
Exemplo n.º 2
0
        public void Visit(IDrawPileInternal <TElement> drawPile)
        {
            var obj = new JObject();

            Serialize(obj, drawPile);
            obj.Add(JsonProperties.ShuffleCount, drawPile.ShuffleCount);
            Content.Add(JsonProperties.DrawPile, obj);
        }