daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
+15 -14
View File
@@ -29,7 +29,7 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Graphics;
using StgSharp.Logic;
using StgSharp.Math;
using StgSharp.MVVM.ViewModel;
@@ -65,11 +65,6 @@ namespace StgSharp.MVVM.View
where TView : ViewBase
{
#pragma warning disable CS8618
private Dictionary<string, RenderStream> _render;
private TView _binding;
#pragma warning restore CS8618
protected ViewRender(TView binding)
{
_binding = binding;
@@ -77,7 +72,7 @@ namespace StgSharp.MVVM.View
public RenderStream this[string renderName]
{
get => _render.TryGetValue(renderName, out RenderStream stream) ? stream : null!;
get => _render.TryGetValue(renderName, out RenderStream stream) ? stream : (null!);
protected set
{
@@ -105,13 +100,6 @@ namespace StgSharp.MVVM.View
protected ViewResponder<TView> Responder => (_binding.Responder as ViewResponder<TView>)!;
public T CreateRenderStream<T>(ViewPort vp, (int x, int y, int z) unitCubeSize) where T : RenderStream, new()
{
T ret = new T();
ret.Initialize(vp, unitCubeSize, Binding.TimeProvider);
return ret;
}
public T CreateRenderStream<T>((int x, int y, int z) unitCubeSize) where T : RenderStream, new()
{
T ret = new T();
@@ -119,6 +107,13 @@ namespace StgSharp.MVVM.View
return ret;
}
public T CreateRenderStream<T>(ViewPort vp, (int x, int y, int z) unitCubeSize) where T : RenderStream, new()
{
T ret = new T();
ret.Initialize(vp, unitCubeSize, Binding.TimeProvider);
return ret;
}
public abstract void CustomizedInitialize();
public void Initialize()
@@ -128,6 +123,12 @@ namespace StgSharp.MVVM.View
public abstract bool ValidateInitializing();
#pragma warning disable CS8618
private Dictionary<string, RenderStream> _render;
private TView _binding;
#pragma warning restore CS8618
}
}
}