mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 03:49:35 +08:00
24 lines
791 B
C#
24 lines
791 B
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Oshima.FunGame.OshimaModules.Items
|
|
{
|
|
public class RegionItem : Item
|
|
{
|
|
public HashSet<Func<Region, bool>> GenerationPredicates { get; } = [];
|
|
|
|
public RegionItem(long id, string name, string description, string story = "", QualityType quality = QualityType.White, params IEnumerable<Func<Region, bool>> predicates) : base(ItemType.SpecialItem)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
Description = description;
|
|
BackgroundStory = story;
|
|
QualityType = quality;
|
|
foreach (Func<Region, bool> predicate in predicates)
|
|
{
|
|
GenerationPredicates.Add(predicate);
|
|
}
|
|
}
|
|
}
|
|
}
|