mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-25 08:22:15 +00:00
Feature label styling (#454)
* 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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using MonoGame.Extended.Entities;
|
||||
|
||||
namespace MonoGame.Extended.Gui.Tests.Implementation
|
||||
{
|
||||
[EntityComponent]
|
||||
public class EntityComponentBasic : TransformComponent2D
|
||||
{
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MonoGame.Extended.Entities;
|
||||
|
||||
namespace MonoGame.Extended.Gui.Tests.Implementation
|
||||
{
|
||||
[EntityTemplate(Name)]
|
||||
public class EntityTemplateBasic : EntityTemplate
|
||||
{
|
||||
public const string Name = nameof(EntityTemplateBasic);
|
||||
|
||||
protected override void Build(Entity entity)
|
||||
{
|
||||
entity.Attach<EntityComponentBasic>();
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
# Implementation
|
||||
|
||||
This folder is for making a testable implementation using the ECS library.
|
||||
This implementation is used in the unit tests in this project.
|
||||
Reference in New Issue
Block a user