10 if (flag == m_PlacingFlag)
19 placingComponent.GetOnPlacingFlagsChange().Insert(OnPlacingFlagsChange);
20 OnPlacingFlagsChange(m_PlacingFlag, placingComponent.HasPlacingFlag(m_PlacingFlag));
23 override void Untrack()
28 placingComponent.GetOnPlacingFlagsChange().Remove(OnPlacingFlagsChange);
31 override bool IsServer()
35 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
38 return placingComponent && placingComponent.IsPlacing() && placingComponent.IsPlacingFlagCompatible(m_PlacingFlag);
40 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
44 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
48 placingComponent.TogglePlacingFlag(m_PlacingFlag);