|
|
|
@ -23,19 +23,19 @@ public abstract class EntityBase<TReturn> |
|
|
|
|
|
|
|
|
|
public TReturn Add(string symbol) => Add(Universe.LookupSymbolOrThrow(symbol)); |
|
|
|
|
public TReturn Add<T>() => Add(Universe.LookupOrThrow(typeof(T))); |
|
|
|
|
public TReturn Add(Entity relation, Entity target) => Add(relation & target); |
|
|
|
|
public TReturn Add(Entity relation, Entity target) => Add(Identifier.Pair(relation, target)); |
|
|
|
|
public TReturn Add<TRelation>(Entity target) => Add(Universe.LookupOrThrow<TRelation>(), target); |
|
|
|
|
public TReturn Add<TRelation, TTarget>() => Add(Universe.LookupOrThrow<TRelation>(), Universe.LookupOrThrow<TTarget>()); |
|
|
|
|
|
|
|
|
|
public TReturn Remove(string symbol) => Remove(Universe.LookupSymbolOrThrow(symbol)); |
|
|
|
|
public TReturn Remove<T>() => Remove(Universe.LookupOrThrow(typeof(T))); |
|
|
|
|
public TReturn Remove(Entity relation, Entity target) => Remove(relation & target); |
|
|
|
|
public TReturn Remove(Entity relation, Entity target) => Remove(Identifier.Pair(relation, target)); |
|
|
|
|
public TReturn Remove<TRelation>(Entity target) => Remove(Universe.LookupOrThrow<TRelation>(), target); |
|
|
|
|
public TReturn Remove<TRelation, TTarget>() => Remove(Universe.LookupOrThrow<TRelation>(), Universe.LookupOrThrow<TTarget>()); |
|
|
|
|
|
|
|
|
|
public bool Has(string symbol) => Has(Universe.LookupSymbolOrThrow(symbol)); |
|
|
|
|
public bool Has<T>() => Has(Universe.LookupOrThrow(typeof(T))); |
|
|
|
|
public bool Has(Entity relation, Entity target) => Has(relation & target); |
|
|
|
|
public bool Has(Entity relation, Entity target) => Has(Identifier.Pair(relation, target)); |
|
|
|
|
public bool Has<TRelation>(Entity target) => Has(Universe.LookupOrThrow<TRelation>(), target); |
|
|
|
|
public bool Has<TRelation, TTarget>() => Has(Universe.LookupOrThrow<TRelation>(), Universe.LookupOrThrow<TTarget>()); |
|
|
|
|
|
|
|
|
|