Code cleanup.

This commit is contained in:
2023-02-17 21:13:19 +08:00
parent 6a648c2dcd
commit 36dddea4d9
2 changed files with 4 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ namespace Cryville.Crtr {
EventBus bbus;
EventBus tbus;
EventBus nbus;
InputProxy inputProxy;
Judge judge;
bool started = false;
@@ -68,8 +69,6 @@ namespace Cryville.Crtr {
public static Dictionary<Identifier, MotionRegistry> motionRegistry = new Dictionary<Identifier, MotionRegistry>();
public static PdtEvaluator etor;
InputProxy inputProxy;
#endregion
#region MonoBehaviour
@@ -234,7 +233,7 @@ namespace Cryville.Crtr {
readonly StringBuffer logsbuf = new StringBuffer();
readonly List<string> logEntries = new List<string>();
int logsLength = 0;
Action<int,string,string> d_addLogEntry;
Action<int, string, string> d_addLogEntry;
void AddLogEntry(int level, string module, string msg) {
string color;
switch (level) {

View File

@@ -233,8 +233,8 @@ namespace Cryville.Crtr.Event {
#region ISkinnableGroup
public abstract string TypeName { get; }
public SkinContext SkinContext { get; set; }
public Anchor OpenedAnchor { get; set; }
public SkinContext SkinContext { get; private set; }
public Anchor OpenedAnchor { get; private set; }
public bool TryGetAnchorsByName(int name, out IReadOnlyCollection<Anchor> result) {
List<Anchor> anchors;
var ret = Anchors.TryGetValue(name, out anchors);