Example #1
0
 public Inanimate(Vector2 pos, InanimateType type, GameplayState gs)
 {
     Position  = pos;
     Type      = type;
     GoldValue = 1;
 }
Example #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);