5 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
7 return CanBePerformed(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
10 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
15 return hoveredEntity.GetPos(pos);
19 return cursorWorldPosition != vector.Zero;
23 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
32 if (teleportComponent)
35 hoveredEntity.GetPos(cursorWorldPosition);
37 teleportComponent.TeleportCamera(cursorWorldPosition,
true,
false);