|
| AZ_EDITOR_COMPONENT (EditorLayerComponent, "{976E05F0-FAC7-43B6-B621-66108AE73FD4}") |
|
LayerResult | WriteLayerAndGetEntities (QString levelAbsoluteFolder, EntityList &entityList, AZ::SliceComponent::SliceReferenceToInstancePtrs &layerInstances) override |
|
void | RestoreEditorData () override |
|
bool | HasLayer () override |
|
void | UpdateLayerNameConflictMapping (AZStd::unordered_map< AZStd::string, int > &nameConflictsMapping) override |
|
QColor | GetLayerColor () override |
|
AZ::Color | GetColorPropertyValue () override |
|
bool | IsSaveFormatBinary () override |
|
bool | IsLayerNameValid () override |
|
AZ::Outcome< AZStd::string, AZStd::string > | GetLayerBaseFileName () override |
|
AZ::Outcome< AZStd::string, AZStd::string > | GetLayerFullFileName () override |
|
AZ::Outcome< AZStd::string, AZStd::string > | GetLayerFullFilePath (const QString &levelAbsoluteFolder) override |
|
void | SetLayerChildrenVisibility (bool visible) override |
|
bool | AreLayerChildrenVisible () override |
|
bool | HasUnsavedChanges () override |
|
void | MarkLayerWithUnsavedChanges () override |
|
void | SetOverwriteFlag (bool set) override |
|
bool | GetOverwriteFlag () override |
|
bool | DoesLayerFileExistOnDisk (const QString &levelAbsoluteFolder) override |
|
bool | GatherSaveDependencies (AZStd::unordered_set< AZ::EntityId > &allLayersToSave, bool &mustSaveLevel) override |
|
void | AddLayerSaveDependency (const AZ::EntityId &layerSaveDependency) override |
|
void | AddLevelSaveDependency () override |
|
void | GatherLayerEntitiesWithName (const AZStd::string &layerName, EntityIdSet &layerEntities) override |
|
void | CanParentChange (bool &parentCanChange, AZ::EntityId oldParent, AZ::EntityId newParent) override |
|
LayerResult | ReadLayer (QString levelPakFile, AZ::SliceComponent::SliceAssetToSliceInstancePtrs &sliceInstances, AZStd::unordered_map< AZ::EntityId, AZ::Entity * > &uniqueEntities) |
|
AZStd::string | GetCachedLayerBaseFileName () |
|
void | CleanupLoadedLayer () |
|
void | SetLayerColor (AZ::Color newColor) override |
|
void | SetSaveFormat (LayerProperties::SaveFormat saveFormat) |
|
AzToolsFramework::Layers::LayerProperties::SaveFormat | GetSaveFormat () |
|
| AZ_RTTI (EditorComponentBase, "{D5346BD4-7F20-444E-B370-327ACD03D4A0}", AZ::Component) |
|
| EditorComponentBase () |
|
void | SetDirty () |
|
virtual void | Init () override |
|
virtual void | Activate () override |
|
virtual void | Deactivate () override |
|
void | OnAfterEntitySet () override final |
|
void | SetSerializedIdentifier (AZStd::string serializedIdentifier) override final |
|
AZStd::string | GetSerializedIdentifier () const override final |
|
AZ::TransformInterface * | GetTransform () const |
|
AZ::Transform | GetWorldTM () const |
|
AZ::Transform | GetLocalTM () const |
|
bool | IsSelected () const |
|
virtual void | BuildGameEntity (AZ::Entity *) |
|
virtual void | SetPrimaryAsset (const AZ::Data::AssetId &) |
|
virtual void | AddContextMenuActions (QMenu *) |
|
|
static void | Reflect (AZ::ReflectContext *context) |
|
static void | GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &services) |
|
static void | GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &services) |
|
static void | GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &services) |
|
static void | CreateLayerAssetContextMenu (QMenu *menu, const AZStd::string &fullFilePath, QString levelPath) |
|
static void | RecoverLayer (const AZStd::string &fullFilePath) |
|
static LayerResult | RecoverEditorLayer (const AZStd::shared_ptr< Layers::EditorLayer > editorLayer, const AZStd::string &newLayerName, const AZ::EntityId &layerParentId) |
|
static const char * | GetLayerExtension () |
|
static AZStd::string | GetLayerExtensionWithDot () |
|
static AZ::EntityId | CreateLayerEntity (const AZStd::string &name, const AZ::Color &layerColor, const LayerProperties::SaveFormat &saveAsBinary=LayerProperties::SaveFormat::Xml, const AZ::EntityId &optionalEntityId=AZ::EntityId()) |
|
static AZ::EntityId | CreateLayerEntityFromName (const AZStd::string &name) |
|
static void | Reflect (AZ::ReflectContext *context) |
|
|
void | Init () override |
|
void | Activate () override |
|
void | Deactivate () override |
|
LayerResult | PrepareLayerForSaving (EditorLayer &layer, EntityList &entityList, AZ::SliceComponent::SliceReferenceToInstancePtrs &layerInstances) |
|
LayerResult | WriteLayerToStream (const EditorLayer &layer, AZ::IO::ByteContainerStream< AZStd::vector< char > > &entitySaveStream) |
|
LayerResult | WriteLayerStreamToDisk (QString levelAbsoluteFolder, const AZ::IO::ByteContainerStream< AZStd::vector< char > > &entitySaveStream) |
|
LayerResult | CreateDirectoryAtPath (const QString &path) |
|
LayerResult | PopulateFromLoadedLayerData (const EditorLayer &loadedLayer, AZ::SliceComponent::SliceAssetToSliceInstancePtrs &sliceInstances, AZStd::unordered_map< AZ::EntityId, AZ::Entity * > &uniqueEntities) |
|
void | AddUniqueEntitiesAndInstancesFromEditorLayer (const EditorLayer &loadedLayer, AZ::SliceComponent::SliceAssetToSliceInstancePtrs &sliceInstances, AZStd::unordered_map< AZ::EntityId, AZ::Entity * > &uniqueEntities) |
|
QString | GetLayerDirectory () const |
|
QString | GetLayerTempDirectory () const |
|
QString | GetLayerTempExtension () const |
|
int | GetMaxTempFileWriteAttempts () const |
|
LayerResult | GenerateLayerFileName () |
|
LayerResult | GetFileHash (QString filePath, QCryptographicHash &hash) |
|
LayerResult | GenerateCleanupFailureWarningResult (QString message, const LayerResult *currentFailure) |
|
LayerResult | CleanupTempFileAndFolder (QString tempFile, const QDir &layerTempFolder, const LayerResult *currentFailure) |
|
LayerResult | CleanupTempFolder (const QDir &layerTempFolder, const LayerResult *currentFailure) |
|
void | GatherAllNonLayerNonSliceDescendants (EntityList &entityList, EditorLayer &layer, const AZStd::unordered_map< AZ::EntityId, AZ::Entity * > &entityIdsToEntityPtrs, AzToolsFramework::Components::TransformComponent &transformComponent) const |
|
void | SetUnsavedChanges (bool unsavedChanges) |
|
This editor component marks an entity as a layer entity. Layer entities allow the level to be split into multiple files, so content creators can work on the same level at the same time, without conflict.