mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
Update ITemplateNode.cs
This commit is contained in:
parent
2fa250b648
commit
7fbdbcf024
@ -20,6 +20,20 @@ namespace DCFApixels.DragonECS
|
|||||||
self.Apply(worldID, entityID);
|
self.Apply(worldID, entityID);
|
||||||
return (EcsWorld.GetWorld(worldID), entityID);
|
return (EcsWorld.GetWorld(worldID), entityID);
|
||||||
}
|
}
|
||||||
|
public static void Apply(this ITemplateNode self, EcsWorld world, int entityID)
|
||||||
|
{
|
||||||
|
self.Apply(world.ID, entityID);
|
||||||
|
}
|
||||||
|
public static int ApplyAndReturn(this ITemplateNode self, EcsWorld world, int entityID)
|
||||||
|
{
|
||||||
|
self.Apply(world.ID, entityID);
|
||||||
|
return entityID;
|
||||||
|
}
|
||||||
|
public static entlong ApplyAndReturnLong(this ITemplateNode self, EcsWorld world, int entityID)
|
||||||
|
{
|
||||||
|
self.Apply(world.ID, entityID);
|
||||||
|
return (world, entityID);
|
||||||
|
}
|
||||||
public static int NewEntity(this EcsWorld world, ITemplateNode template)
|
public static int NewEntity(this EcsWorld world, ITemplateNode template)
|
||||||
{
|
{
|
||||||
int e = world.NewEntity();
|
int e = world.NewEntity();
|
||||||
|
Loading…
Reference in New Issue
Block a user