Prune and clean up code.

This commit is contained in:
2023-04-04 20:48:17 +08:00
parent a013d59379
commit c98536e8ab
12 changed files with 23 additions and 377 deletions

View File

@@ -14,10 +14,6 @@ using System.IO;
using UnityEngine;
using Logger = Cryville.Common.Logger;
#if UNITY_ANDROID
using AOT;
#endif
namespace Cryville.Crtr {
public static class Game {
public static string GameDataPath {
@@ -107,9 +103,6 @@ namespace Cryville.Crtr {
{ new Identifier("sv") , new MotionRegistry(new VecPtComp(0f, 0f), new VecPtComp(0f, 1f)) },
{ new Identifier("svm") , new MotionRegistry(new Vec1m(1f)) },
{ new Identifier("dist") , new MotionRegistry(new VecPtComp(0f, 0f), new VecPtComp(0f, float.PositiveInfinity)) },
{ new Identifier("corner") , new MotionRegistry(typeof(VecI1)) },
{ new Identifier("ctrl0") , new MotionRegistry(typeof(VecCtrl)) },
{ new Identifier("ctrl1") , new MotionRegistry(typeof(VecCtrl)) },
{ new Identifier("track") , new MotionRegistry(typeof(Vec1)) },
};
@@ -163,14 +156,6 @@ namespace Cryville.Crtr {
}
}
public static DirectoryInfo[] GetDatabaseList() {
return new DirectoryInfo(GameDataPath + "/db").GetDirectories();
}
public static void ConnectDatabase(string name) {
}
public static void DisconnectDatabase() {
}
public static void LogException(string module, string prefix, Exception ex) {
Logger.Log("main", 4, module, "{0}: {1}", prefix, ex);
}