daily update on 20240901 by nitload youmu

This commit is contained in:
Nitload
2024-09-02 05:57:07 +08:00
parent 1ee4e4a42f
commit 0979123ac0
47 changed files with 869 additions and 707 deletions
+9 -3
View File
@@ -44,6 +44,7 @@ using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
namespace StgSharp.MVVM.View
{
@@ -61,7 +62,7 @@ namespace StgSharp.MVVM.View
private GetDataBindingEntryDelegate getDataBindingEntry;
private int usedFrame = 0;
private int usedFrame;
private IViewDesigner<ViewBase> _design;
private IViewRender<ViewBase> _render;
private IViewResponder<ViewBase> _responder;
@@ -87,6 +88,11 @@ namespace StgSharp.MVVM.View
}
}
internal bool IsWaitingWindowEvent
{
get => context.IsWaitingEvent;
}
public (int x, int y, int z) UnitCubeSize
{
get => unitCubeSize;
@@ -142,7 +148,7 @@ namespace StgSharp.MVVM.View
set => _responder = value;
}
public abstract void CustomizedInitialize(ViewModelBase viewModelBinding);
public abstract void CustomizedInitialize([NotNull]ViewModelBase viewModelBinding);
/// <summary>
/// Get the status of a certain key on the keyboard.
@@ -155,7 +161,7 @@ namespace StgSharp.MVVM.View
return InternalIO.glfwGetKey(context.ViewPortID, (int)key);
}
public void InternalInitialize(string name, (int, int, int) cubeSize, ViewModelBase viewModelBinding)
public void InternalInitialize(string name, (int, int, int) cubeSize, [NotNull]ViewModelBase viewModelBinding)
{
SelfName = name;
unitCubeSize = cubeSize;