Files
FlaxEngine/Source/Engine/Content/AssetInfo.h
Wojciech Figat a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00

59 lines
1.3 KiB
C++

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Core/Types/String.h"
#include "Engine/Core/Types/Guid.h"
/// <summary>
/// Contains short information about an asset.
/// </summary>
API_STRUCT() struct AssetInfo
{
DECLARE_SCRIPTING_TYPE_MINIMAL(AssetInfo);
/// <summary>
/// Unique ID.
/// </summary>
API_FIELD() Guid ID;
/// <summary>
/// The stored data full typename. Used to recognize asset type.
/// </summary>
API_FIELD() String TypeName;
/// <summary>
/// Cached path.
/// </summary>
API_FIELD() String Path;
public:
/// <summary>
/// Initializes a new instance of the <see cref="AssetInfo"/> struct.
/// </summary>
AssetInfo()
{
ID = Guid::Empty;
}
/// <summary>
/// Initializes a new instance of the <see cref="AssetInfo"/> struct.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="typeName">The typename identifier.</param>
/// <param name="path">The path.</param>
AssetInfo(const Guid& id, const StringView& typeName, const StringView& path)
: ID(id)
, TypeName(typeName)
, Path(path)
{
}
public:
/// <summary>
/// Gets the string.
/// </summary>
/// <returns>The string.</returns>
String ToString() const;
};