mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 20:49:33 +08:00

* 使基于HTTPClient的DataRequest能够收到回复;添加了适用于Gaming的DataRequest;优化了加载器的加载逻辑;依赖集合的优化 * 执行代理清理;优化模组模板 * 删除GamingEvent无用的事件;删除result哈希表;删除无用的Item/Skill类;GameModuleLoader优化
27 lines
705 B
C#
27 lines
705 B
C#
using System;
|
|
using Milimoe.FunGame.Core.Interface.Entity;
|
|
|
|
namespace Milimoe.FunGame.Core.Entity
|
|
{
|
|
public class Item : BaseEntity, IItem
|
|
{
|
|
public string Describe { get; set; } = "";
|
|
public decimal Price { get; set; }
|
|
public char Key { get; set; }
|
|
public bool Active { get; set; }
|
|
public bool Enable { get; set; }
|
|
public Character? Character { get; set; } = null;
|
|
public Skill? Skill { get; set; } = null;
|
|
|
|
internal Item(bool active = false)
|
|
{
|
|
Active = active;
|
|
}
|
|
|
|
public override bool Equals(IBaseEntity? other)
|
|
{
|
|
return other is Item c && c.Name == Name;
|
|
}
|
|
}
|
|
}
|