public void Visit(IDrawPileInternal <TElement> drawPile) { var pile = (JObject)Content[JsonProperties.DrawPile]; Load(pile, drawPile); drawPile.ShuffleCount = (uint)pile[JsonProperties.ShuffleCount]; }
public void Visit(IDrawPileInternal <TElement> drawPile) { var obj = new JObject(); Serialize(obj, drawPile); obj.Add(JsonProperties.ShuffleCount, drawPile.ShuffleCount); Content.Add(JsonProperties.DrawPile, obj); }