|
|
|
@ -242,7 +242,7 @@ public class ModuleGenerator |
|
|
|
|
|
|
|
|
|
sb.Append(p.Kind switch { |
|
|
|
|
ParameterKind.Has => ".None", |
|
|
|
|
ParameterKind.Not => ".None.Not", |
|
|
|
|
ParameterKind.Not => ".Not", |
|
|
|
|
ParameterKind.Ref => ".InOut", |
|
|
|
|
ParameterKind.Out => ".Out", |
|
|
|
|
_ when !p.IsValueType => ".InOut", // Reference types always imply writability. |
|
|
|
@ -289,6 +289,10 @@ public class ModuleGenerator |
|
|
|
|
sb.AppendLine($"\t\t{@var}.Add<{a.GetFullName()}>();"); |
|
|
|
|
foreach (var (r, t) in e.RelationsToAdd) |
|
|
|
|
sb.AppendLine($"\t\t{@var}.Add<{r.GetFullName()}, {t.GetFullName()}>();"); |
|
|
|
|
|
|
|
|
|
// If system doesn't have an explicit phase set, default to OnUpdate. |
|
|
|
|
if (e is MethodEntityInfo { IsSystem: true, HasPhaseSet: false }) |
|
|
|
|
sb.AppendLine($"\t\t{@var}.Add<gaemstone.Flecs.Core.DependsOn, gaemstone.Flecs.Pipeline.OnUpdate>();"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|