mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
Create ComponentTemplateGenerator.cs
This commit is contained in:
parent
1c64d32831
commit
3d8b155180
@ -0,0 +1,21 @@
|
|||||||
|
using DCFApixels.DragonECS;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DCFApixels.Assets.Plugins.DragonECS_Unity.src.Templates.ComponentTemplateGenerator
|
||||||
|
{
|
||||||
|
internal class ComponentTemplateGenerator
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class Template_GUID<T> : ComponentTemplateBase<T> where T : struct, IEcsComponent
|
||||||
|
{
|
||||||
|
public override void Apply(short worldID, int entityID)
|
||||||
|
{
|
||||||
|
EcsPool<T>.Apply(ref component, entityID, worldID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user