Пример #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);
     };
 }
Пример #2
0
 public MonsterType SetMineshaftConstructor(MineshaftConstructor constructor)
 {
     _mineshaftConstructor = constructor;
     return(this);
 }