Exemplo n.º 1
0
 public Inanimate(Vector2 pos, InanimateType type, GameplayState gs)
 {
     Position  = pos;
     Type      = type;
     GoldValue = 1;
 }
Exemplo n.º 2
0
 public static T Match <T>(this InanimateType self, Func <T> vase, Func <T> sacrificialFirePit) =>
 self == InanimateType.Vase ? vase() :
 self == InanimateType.SacrificialFirePit ? sacrificialFirePit() :
 default(T);