|
|
@ -135,7 +135,7 @@ public class ModuleGenerator |
|
|
|
// TODO: Can BuiltIn modules have systems and such? |
|
|
|
// TODO: Can BuiltIn modules have systems and such? |
|
|
|
|
|
|
|
|
|
|
|
if (module.HasLifetimeInterface) |
|
|
|
if (module.HasLifetimeInterface) |
|
|
|
sb.AppendLine("\t\tOnEnabled(module);"); |
|
|
|
sb.AppendLine("\t\tOnEnable(module);"); |
|
|
|
|
|
|
|
|
|
|
|
sb.AppendLine($$"""
|
|
|
|
sb.AppendLine($$"""
|
|
|
|
} |
|
|
|
} |
|
|
@ -147,7 +147,7 @@ public class ModuleGenerator |
|
|
|
if (module.IsBuiltIn) |
|
|
|
if (module.IsBuiltIn) |
|
|
|
sb.AppendLine("\t\tthrow new global::System.InvalidOperationException();"); |
|
|
|
sb.AppendLine("\t\tthrow new global::System.InvalidOperationException();"); |
|
|
|
if (module.HasLifetimeInterface) |
|
|
|
if (module.HasLifetimeInterface) |
|
|
|
sb.AppendLine("\t\tOnDisabled(module);"); |
|
|
|
sb.AppendLine("\t\tOnDisable(module);"); |
|
|
|
|
|
|
|
|
|
|
|
sb.AppendLine($$"""
|
|
|
|
sb.AppendLine($$"""
|
|
|
|
} |
|
|
|
} |
|
|
|