Ejemplo n.º 1
0
 public Hand(string id = "")
 {
     if (id == "")
     {
         this.id = IdIssuer.IssueId(this);
     }
     else
     {
         IdIssuer.RegisterId(id, this);
         this.id = id;
     }
 }
Ejemplo n.º 2
0
 public Unit(UnitCard card, int id, GameManager gm)
 {
     this.id = "" + id;
     IdIssuer.RegisterId(this.id, this);
     Constructor(card, gm);
 }
Ejemplo n.º 3
0
 public Unit(UnitCard card, GameManager gm)
 {
     this.id = IdIssuer.IssueId(this);
     Constructor(card, gm);
 }
Ejemplo n.º 4
0
 public CardListDelta(XmlElement from, IdIssuer <T> issuer, CardLoader cl)
     : base(from, issuer, cl)
 {
     this.Index = Int32.Parse(from.Attributes["index"].Value);
     this.Mode  = from.Attributes["mode"].Value == "add" ? DeltaMode.ADD : DeltaMode.REMOVE; // use remove as default b/c more likely to error if chosen eroniously
 }