Crappy hot reloading of textures and Properties editor for textures

This commit is contained in:
Simon Lübeß
2023-01-03 22:21:26 +01:00
parent 427323744b
commit ee30920b56
17 changed files with 707 additions and 70 deletions
+7 -1
View File
@@ -30,6 +30,8 @@ class AssetFile
private bool _isDirectory;
private Object _loadedAsset;
public bool IsDirectory => _isDirectory;
public StringView FilePath => _path;
@@ -38,6 +40,8 @@ class AssetFile
public AssetConfig AssetConfig => _assetConfig;
public Object LoadedAsset => _loadedAsset;
[AllowAppend]
public this(EditorContentManager contentManager, StringView path, bool isDirectory)
{
@@ -102,10 +106,12 @@ class AssetFile
}
}
private void SaveAssetConfig()
public void SaveAssetConfig()
{
gBonEnv.serializeFlags |= .Verbose;
Bon.SerializeIntoFile(_assetConfig, _assetConfigPath);
_assetConfig.Config.[Friend]_changed = false;
}
}