mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
fix conflict of constraints
This commit is contained in:
parent
416504db45
commit
a4c2b65eb9
@ -104,6 +104,9 @@ namespace DCFApixels.DragonECS
|
|||||||
public TOtherSubject Combine<TOtherSubject>() where TOtherSubject : EcsSubject
|
public TOtherSubject Combine<TOtherSubject>() where TOtherSubject : EcsSubject
|
||||||
{
|
{
|
||||||
var result = _world.GetSubject<TOtherSubject>();
|
var result = _world.GetSubject<TOtherSubject>();
|
||||||
|
_inc.ExceptWith(result.mask._exc);//удаляю конфликтующие ограничения
|
||||||
|
_exc.ExceptWith(result.mask._inc);//удаляю конфликтующие ограничения
|
||||||
|
|
||||||
_inc.UnionWith(result.mask._inc);
|
_inc.UnionWith(result.mask._inc);
|
||||||
_exc.UnionWith(result.mask._exc);
|
_exc.UnionWith(result.mask._exc);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user