Add IComponentState / struct support (#4610)

Still boxes but hey at least the struct dream is real.
This commit is contained in:
metalgearsloth
2024-01-04 13:42:47 +11:00
committed by GitHub
parent 7d27835543
commit 270326e188
14 changed files with 69 additions and 84 deletions

View File

@@ -231,12 +231,12 @@ namespace {nameSpace};
public partial class {componentName}
{{
[System.Serializable, NetSerializable]
public class {stateName} : ComponentState
public sealed class {stateName} : IComponentState
{{{stateFields}
}}
[RobustAutoGenerated]
public class {componentName}_AutoNetworkSystem : EntitySystem
public sealed class {componentName}_AutoNetworkSystem : EntitySystem
{{
public override void Initialize()
{{