14 return EClass.debug.debugProps;
22 this.installed.Init();
27 public void OnCardAddedToZone(
Card c)
39 case PlaceState.roaming:
42 case PlaceState.stocked:
45 case PlaceState.installed:
46 this.installed.Add(c);
59 public void OnSetPlaceState(
Card c, PlaceState? newType, PlaceState? oldType =
null)
65 if (c.parent !=
EClass._zone)
73 switch (oldType.GetValueOrDefault())
75 case PlaceState.roaming:
76 if (this.dbg && !this.roaming.all.Contains(c))
78 Debug.LogError(
"remove roaming" + ((c !=
null) ? c.ToString() :
null));
80 this.roaming.Remove(c);
82 case PlaceState.stocked:
83 if (this.dbg && !this.stocked.all.Contains(c))
85 Debug.LogError(
"remove stocked" + ((c !=
null) ? c.ToString() :
null));
87 this.stocked.Remove(c);
89 case PlaceState.installed:
90 if (this.dbg && !this.installed.all.Contains(c))
92 Debug.LogError(
"remove installed" + ((c !=
null) ? c.ToString() :
null));
94 this.installed.Remove(c);
100 this.sales.Remove(c);
103 if (newType !=
null && newType !=
null)
105 switch (newType.GetValueOrDefault())
107 case PlaceState.roaming:
108 if (this.dbg && this.roaming.all.Contains(c))
110 Debug.LogError(
"add roaming" + ((c !=
null) ? c.ToString() :
null));
114 case PlaceState.stocked:
115 if (this.dbg && this.stocked.all.Contains(c))
117 Debug.LogError(
"add stocked" + ((c !=
null) ? c.ToString() :
null));
121 case PlaceState.installed:
122 if (this.dbg && this.installed.all.Contains(c))
124 Debug.LogError(
"add installed" + ((c !=
null) ? c.ToString() :
null));
126 this.installed.Add(c);
148 public List<Card> deconstructing =
new List<Card>();
151 public List<Card> sales =
new List<Card>();