mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-21 17:59:31 +00:00
eb5fd93e9f
* Added some basic tests for the ECS * Add test project for Nuclex Gui * Nuclex Gui project update * Added ability to style labels * Removed Nuclex Gui Test project for lack of tests
16 lines
473 B
C#
16 lines
473 B
C#
using MonoGame.Extended.Entities;
|
|
|
|
namespace MonoGame.Extended.Gui.Tests.Implementation
|
|
{
|
|
[EntityTemplate(Name)]
|
|
public class EntityTemplateUsingManager : EntityTemplate
|
|
{
|
|
public const string Name = nameof(EntityTemplateUsingManager);
|
|
|
|
protected override void Build(Entity entity)
|
|
{
|
|
var num = Manager.EntityManager.TotalEntitiesCount;
|
|
entity.Attach<EntityComponentBasic>(c => c.Number = num);
|
|
}
|
|
}
|
|
} |