添加了默认的房间标识

This commit is contained in:
milimoe 2025-07-30 23:23:41 +08:00
parent a181fb653c
commit f55fda4c86
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -42,6 +42,11 @@ namespace Milimoe.FunGame.Core.Entity
Statistics = new(this); Statistics = new(this);
} }
public override string ToString()
{
return $"[ {Roomid} ] {Name}";
}
public override bool Equals(IBaseEntity? other) public override bool Equals(IBaseEntity? other)
{ {
return other is Room r && r.Roomid == Roomid; return other is Room r && r.Roomid == Roomid;