Fixed AssetHandle serialization

- Serialize MeshComponents
- Fixed handling renamed files
This commit is contained in:
Simon Lübeß
2023-03-19 01:04:32 +01:00
parent c164aeecaa
commit edcec02e94
19 changed files with 324 additions and 321 deletions
+2 -21
View File
@@ -4,27 +4,8 @@ using GlitchyEngine.Content;
namespace GlitchyEngine.Renderer
{
public struct MeshComponent// : IDisposableComponent
public struct MeshComponent
{
public AssetHandle<GeometryBinding> Mesh {get; set mut;} = .Invalid;
/*
private GeometryBinding _mesh;
public AssetHandle<GeometryBinding> Mesh
{
[Inline]
get => _mesh;
set mut
{
if(_mesh == value)
return;
SetReference!(_mesh, value);
}
}
public void Dispose() mut
{
ReleaseRefAndNullify!(_mesh);
}*/
public AssetHandle<GeometryBinding> Mesh = .Invalid;
}
}