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); }; }
public MonsterType SetMineshaftConstructor(MineshaftConstructor constructor) { _mineshaftConstructor = constructor; return(this); }