refactor: Remove ForEach discovery, cache MethodInfo

Remove ForEach type argument collection from source generator.
Cache MethodInfo for RemoveComponentImpl in World.cs.
Update API docs for IRelationship and ChangeKind.
This commit is contained in:
hyper
2026-07-22 16:14:58 +08:00
parent 8a32588c54
commit 53fa3b742d
3 changed files with 15 additions and 86 deletions
+3 -4
View File
@@ -379,7 +379,6 @@ namespace OECS;
public interface IRelationship
{
Entity Source { get; }
Entity Target { get; }
}
```
@@ -399,8 +398,7 @@ namespace OECS;
public struct Relationship<TSelf, TTarget> : IRelationship
where TSelf : struct where TTarget : struct
{
[Key(0)] public Entity Source { get; set; }
[Key(1)] public Entity Target { get; set; }
[Key(0)] public Entity Target { get; set; }
}
```
@@ -424,7 +422,8 @@ public enum ChangeKind
EntityRemoved,
ComponentAdded,
ComponentRemoved,
ComponentModified
ComponentModified,
RelationshipReordered
}
```