Exemplo n.º 1
0
 /// <summary>
 /// A copy constructor. This constructor is only used for copying an <see cref="Entity"/>.
 /// </summary>
 /// <param name="entityData">The source <see cref="EntityData"/>.</param>
 internal EntityData(EntityData entityData)
 {
     Card = entityData.Card;
     //Tags = new Dictionary<GameTag, int>(entityData.Tags);
     Tags = new Data((Data)entityData.Tags);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copies data from the other object into this one.
 /// </summary>
 /// <param name="data">The data.</param>
 public void Stamp(EntityData data)
 {
     Tags = new Dictionary <GameTag, int>(data.Tags);
 }
Exemplo n.º 3
0
 /// <summary>Initializes a new instance of the <see cref="Entity"/> class.</summary>
 /// <param name="game">The game.</param>
 /// <param name="card">The card.</param>
 /// <param name="tags">The tags.</param>
 /// <autogeneratedoc />
 protected internal Entity(Game game, Card card, Dictionary <GameTag, int> tags)
 {
     Game  = game;
     _data = new EntityData(card, tags);
 }