private DeltaMode Mode; // WHETHER TO ADD OR REMOVE THE CARD IN QUESITON public CardListDelta(T list, Card c, int i, DeltaMode m) : base(list) { SendableCard = new SendableTarget <Card>("card", c); // TODO: shouldn't have to know what to name this... Index = i; Mode = m; }
public SwapPositionDelta(XmlElement from, CardLoader loader) : base(from, loader) { SendableLane1 = new SendableTarget <Lane>("lane1", from, Lane.IdIssuer); this.SideIndex1 = Int32.Parse(from.Attributes["sideIndex1"].Value); this.Position1 = Int32.Parse(from.Attributes["position1"].Value); SendableLane2 = new SendableTarget <Lane>("lane2", from, Lane.IdIssuer); this.SideIndex2 = Int32.Parse(from.Attributes["sideIndex2"].Value); this.Position2 = Int32.Parse(from.Attributes["position2"].Value); }
public SwapPositionDelta(Lane l1, int side1, int pos1, Lane l2, int side2, int pos2) : base() { SendableLane1 = new SendableTarget <Lane>("lane1", l1); SideIndex1 = side1; Position1 = pos1; SendableLane2 = new SendableTarget <Lane>("lane2", l2); SideIndex2 = side2; Position2 = pos2; }
public ResourcePoolDelta(XmlElement e, CardLoader cl) : base(e, cl) { this.rp = new SendableTarget <ResourcePool>("poolId", e, ResourcePool.IdIssuer); this.amount = Int32.Parse(e.Attributes["amount"].Value); }
public ResourcePoolDelta(int amount, ResourcePool rp) { this.amount = amount; this.rp = new SendableTarget <ResourcePool>("poolId", rp); }
public UnitDelta(XmlElement from, CardLoader cl) : base(from, cl) { sendableTarget = new SendableTarget <Unit>("target", from, Unit.IdIssuer); sendableSource = new SendableTarget <Unit>("source", from, Unit.IdIssuer); }
public UnitDelta(Unit t, Unit s) { sendableTarget = new SendableTarget <Unit>("target", t); sendableSource = new SendableTarget <Unit>("source", s); }