make note about template feature

pull/3/head
cosmonaut 2023-01-09 16:36:11 -08:00
parent 93ed5c8dd2
commit d1476d6415
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ namespace MoonTools.ECS
protected void Set<TComponent>(in Template template, in TComponent component) where TComponent : unmanaged => World.Set<TComponent>(template, component); protected void Set<TComponent>(in Template template, in TComponent component) where TComponent : unmanaged => World.Set<TComponent>(template, component);
// This feature is EXPERIMENTAL. USe at your own risk!!
protected Entity Instantiate(in Template template) => World.Instantiate(template); protected Entity Instantiate(in Template template) => World.Instantiate(template);
protected ReadOnlySpan<TMessage> ReadMessages<TMessage>() where TMessage : unmanaged protected ReadOnlySpan<TMessage> ReadMessages<TMessage>() where TMessage : unmanaged

View File

@ -1,5 +1,6 @@
namespace MoonTools.ECS namespace MoonTools.ECS
{ {
// This feature is EXPERIMENTAL. Use at your own risk!!
public struct Template public struct Template
{ {
public int ID { get; } public int ID { get; }