Beispiel #1
0
 public MonsterType(ResourceKey name)
 {
     this.name             = name;
     _mineshaftConstructor =
         _ =>
     {
         GemfruitMod.Logger.Log(LogLevel.Error, "MonsterType",
                                $"Can't spawn '{name}' - no mineshaft constructor!");
         return(null);
     };
     _wildernessConstructor =
         _ =>
     {
         GemfruitMod.Logger.Log(LogLevel.Error, "MonsterType",
                                $"Can't spawn '{name}' - no wilderness constructor!");
         return(null);
     };
     _hutchConstructor =
         _ =>
     {
         GemfruitMod.Logger.Log(LogLevel.Error, "MonsterType",
                                $"Can't spawn '{name}' - no hutch constructor!");
         return(null);
     };
 }
Beispiel #2
0
 public MonsterType SetHutchConstructor(HutchConstructor constructor)
 {
     _hutchConstructor = constructor;
     return(this);
 }