4 [
Attribute(
desc:
"When enabled, the operation will always bring up a save dialog.")]
5 protected bool m_bSaveAs;
11 override bool IsServer()
18 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
21 if (!Replication.IsServer() || (!m_bSaveAs && Replication.IsRunning()))
25 SCR_SaveLoadComponent saveLoadComponent = SCR_SaveLoadComponent.GetInstance();
26 return saveLoadComponent && saveLoadComponent.ContainsStruct(
SCR_EditorStruct);
30 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
32 return CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
36 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)