mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-20 11:09:35 +08:00
21 lines
575 B
C#
21 lines
575 B
C#
using System.Collections;
|
|
using Milimoe.FunGame.Core.Interface.Entity;
|
|
|
|
namespace Milimoe.FunGame.Core.Entity
|
|
{
|
|
public abstract class BaseEntity : IBaseEntity
|
|
{
|
|
public virtual long Id { get; set; } = 0;
|
|
public virtual Guid Guid { get; set; } = Guid.Empty;
|
|
public virtual string Name { get; set; } = "";
|
|
|
|
public abstract bool Equals(IBaseEntity? other);
|
|
public abstract IEnumerator<IBaseEntity> GetEnumerator();
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return GetEnumerator();
|
|
}
|
|
}
|
|
}
|