20 lines
456 B
C#
20 lines
456 B
C#
namespace ET
|
|
{
|
|
[EntitySystemOf(typeof(ConfigComponent))]
|
|
[FriendOf(typeof(ConfigComponent))]
|
|
public static partial class ConfigComponentSystem
|
|
{
|
|
[EntitySystem]
|
|
private static void Awake(this ConfigComponent self)
|
|
{
|
|
self.Tables = new cfg.Tables();
|
|
}
|
|
|
|
[EntitySystem]
|
|
private static void Destroy(this ConfigComponent self)
|
|
{
|
|
self.Tables = null;
|
|
}
|
|
}
|
|
}
|