namespace ETModel { public static class PlayerFactory { public static Player Create(Entity domain, long id) { Player player = EntityFactory.CreateWithId(domain, id); PlayerComponent playerComponent = Game.Scene.GetComponent(); playerComponent.Add(player); return player; } } }