Format more engine code
This commit is contained in:
@@ -15,7 +15,7 @@ class AssetsCache;
|
||||
// Content and assets statistics container.
|
||||
API_STRUCT() struct FLAXENGINE_API ContentStats
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(ContentStats);
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(ContentStats);
|
||||
|
||||
// Amount of asset objects in memory.
|
||||
API_FIELD() int32 AssetsCount = 0;
|
||||
@@ -32,11 +32,10 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(ContentStats);
|
||||
/// </summary>
|
||||
API_CLASS(Static) class FLAXENGINE_API Content
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Content);
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Content);
|
||||
friend Engine;
|
||||
friend Asset;
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// The time between content pool updates.
|
||||
/// </summary>
|
||||
@@ -48,7 +47,6 @@ public:
|
||||
static TimeSpan AssetsUnloadInterval;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the assets registry.
|
||||
/// </summary>
|
||||
@@ -56,7 +54,6 @@ public:
|
||||
static AssetsCache* GetRegistry();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Finds the asset info by id.
|
||||
/// </summary>
|
||||
@@ -87,7 +84,6 @@ public:
|
||||
API_FUNCTION() static Array<Guid, HeapAllocation> GetAllAssetsByType(const MClass* type);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the asset factory used by the given asset type id.
|
||||
/// </summary>
|
||||
@@ -103,7 +99,6 @@ public:
|
||||
static IAssetFactory* GetAssetFactory(const AssetInfo& assetInfo);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Generates temporary asset path.
|
||||
/// </summary>
|
||||
@@ -111,7 +106,6 @@ public:
|
||||
API_FUNCTION() static String CreateTemporaryAssetPath();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets content statistics.
|
||||
/// </summary>
|
||||
@@ -263,7 +257,6 @@ public:
|
||||
static bool IsAssetTypeIdInvalid(const ScriptingTypeHandle& type, const ScriptingTypeHandle& assetType);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Finds the asset with at given path. Checks all loaded assets.
|
||||
/// </summary>
|
||||
@@ -279,7 +272,6 @@ public:
|
||||
API_FUNCTION() static Asset* GetAsset(const Guid& id);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified asset.
|
||||
/// </summary>
|
||||
@@ -293,7 +285,6 @@ public:
|
||||
API_FUNCTION(Attributes="HideInEditor") static void DeleteAsset(const StringView& path);
|
||||
|
||||
public:
|
||||
|
||||
#if USE_EDITOR
|
||||
|
||||
/// <summary>
|
||||
@@ -364,13 +355,11 @@ public:
|
||||
API_EVENT() static Delegate<Asset*> AssetReloading;
|
||||
|
||||
private:
|
||||
|
||||
static void tryCallOnLoaded(Asset* asset);
|
||||
static void onAssetLoaded(Asset* asset);
|
||||
static void onAssetUnload(Asset* asset);
|
||||
static Asset* load(const Guid& id, const ScriptingTypeHandle& type, AssetInfo& assetInfo);
|
||||
|
||||
private:
|
||||
|
||||
static void deleteFileSafety(const StringView& path, const Guid& id);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user