using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Entity; using Oshima.FunGame.OshimaModules.Items; namespace Oshima.FunGame.OshimaModules { public class ItemModule : Milimoe.FunGame.Core.Library.Common.Addon.ItemModule { public override string Name => OshimaGameModuleConstant.Item; public override string Description => OshimaGameModuleConstant.Description; public override string Version => OshimaGameModuleConstant.Version; public override string Author => OshimaGameModuleConstant.Author; public override Dictionary Items { get { return Factory.GetGameModuleInstances(OshimaGameModuleConstant.General, OshimaGameModuleConstant.Item); } } protected override Factory.EntityFactoryDelegate ItemFactory() { return (id, name, args) => { return id switch { (long)AccessoryID.攻击之爪10 => new 攻击之爪10(), (long)AccessoryID.攻击之爪20 => new 攻击之爪20(), (long)AccessoryID.攻击之爪35 => new 攻击之爪35(), (long)AccessoryID.攻击之爪50 => new 攻击之爪50(), _ => null, }; }; } } }