Files
riversong-code-showcase/Source/Riversong/Game/CommonServices/Entities/Entity.cs
2026-05-21 16:04:49 +02:00

14 lines
296 B
C#

namespace DanieleMarotta.RiversongCodeShowcase
{
public class Entity
{
public const int InvalidId = 0;
public int Id { get; private set; }
public static T Create<T>(int id) where T : Entity, new()
{
return new T { Id = id };
}
}
}