mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00

* 使基于HTTPClient的DataRequest能够收到回复;添加了适用于Gaming的DataRequest;优化了加载器的加载逻辑;依赖集合的优化 * 执行代理清理;优化模组模板 * 删除GamingEvent无用的事件;删除result哈希表;删除无用的Item/Skill类;GameModuleLoader优化
30 lines
747 B
C#
30 lines
747 B
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Interface.Base;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Api.Factory
|
|
{
|
|
internal class SkillFactory : IFactory<Skill>
|
|
{
|
|
public Type EntityType => _EntityType;
|
|
|
|
private Type _EntityType = typeof(Skill);
|
|
|
|
internal Skill Create(SkillType type = SkillType.Passive)
|
|
{
|
|
_EntityType = typeof(Skill);
|
|
return type switch
|
|
{
|
|
SkillType.Passive => new(false),
|
|
SkillType.Active => new(true),
|
|
_ => new(false)
|
|
};
|
|
}
|
|
|
|
public Skill Create()
|
|
{
|
|
return Create(SkillType.Passive);
|
|
}
|
|
}
|
|
}
|