19 return (entity.GetEntityStates() |
m_SlotManager.GetForcedStates()) & m_Rule.GetStates();
23 if (!HasState(entity))
30 entitySlot.CreateWidget(entity, m_Rule);
32 protected void OnChanged(
EEditableEntityState state, set<SCR_EditableEntityComponent> entitiesInsert, set<SCR_EditableEntityComponent> entitiesRemove)
46 entitySlot.DeleteWidget(m_Rule);
56 entitySlot.CreateWidget(entity, m_Rule);
70 array<int> states = {};
71 m_Rule.GetStatesArray(states);
78 filter.GetOnChanged().Insert(OnChanged);
80 if (canAddAllEntities)
82 set<SCR_EditableEntityComponent> entities =
new set<SCR_EditableEntityComponent>;
83 filter.GetEntities(entities);
84 OnChanged(state, entities,
null);
94 array<int> states = {};
95 m_Rule.GetStatesArray(states);
102 if (filter && filter.GetOnChanged())
103 filter.GetOnChanged().Remove(OnChanged);