mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
using Milimoe.FunGame.Core.Interface.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Entity
|
|
{
|
|
public class Club : BaseEntity
|
|
{
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|
public string Prefix { get; set; } = "";
|
|
public string Description { get; set; } = "";
|
|
public bool IsNeedApproval { get; set; } = false;
|
|
public bool IsPublic { get; set; } = false;
|
|
public double ClubPoins { get; set; } = 0;
|
|
public User Master { get; set; } = General.UnknownUserInstance;
|
|
public Dictionary<long, User> Admins { get; set; } = [];
|
|
public Dictionary<long, User> Members { get; set; } = [];
|
|
public Dictionary<long, User> Applicants { get; set; } = [];
|
|
public Dictionary<long, User> Invitees { get; set; } = [];
|
|
public Dictionary<long, DateTime> MemberJoinTime { get; set; } = [];
|
|
public Dictionary<long, DateTime> ApplicationTime { get; set; } = [];
|
|
public Dictionary<long, DateTime> InvitedTime { get; set; } = [];
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Name} [{Prefix}]";
|
|
}
|
|
|
|
public override bool Equals(IBaseEntity? other)
|
|
{
|
|
return other is Club && other?.Id == Id;
|
|
}
|
|
}
|
|
}
|