Code cleanup.

This commit is contained in:
2022-12-22 14:02:58 +08:00
parent da2313ab57
commit 451ebbe91a
3 changed files with 7 additions and 9 deletions

View File

@@ -529,7 +529,7 @@ namespace Cryville.Crtr {
foreach (var ts in gs.Value.Children) {
ContainerHandler th;
if (ts.Key is Chart.Note) {
th = new NoteHandler(gh, (Chart.Note)ts.Key, pruleset, judge);
th = new NoteHandler(gh, (Chart.Note)ts.Key, pruleset);
}
else {
th = new TrackHandler(gh, (Chart.Track)ts.Key);

View File

@@ -37,8 +37,8 @@ namespace Cryville.Crtr.Event {
public Transform gogroup;
public readonly Dictionary<string, Anchor> Anchors = new Dictionary<string, Anchor>();
public Transform a_head;
public Transform a_tail;
protected Transform a_head;
protected Transform a_tail;
public Vector3 Position {
get;
protected set;
@@ -64,8 +64,8 @@ namespace Cryville.Crtr.Event {
get { return cs.Container; }
}
public SkinContainer skinContainer;
public Judge judge;
SkinContainer skinContainer;
protected Judge judge;
public void AttachSystems(PdtSkin skin, Judge judge) {
skinContainer = new SkinContainer(skin);
this.judge = judge;

View File

@@ -11,11 +11,10 @@ namespace Cryville.Crtr {
readonly GroupHandler gh;
public readonly Chart.Note Event;
readonly PdtRuleset ruleset;
public NoteHandler(GroupHandler gh, Chart.Note ev, PdtRuleset rs, Judge j) : base() {
public NoteHandler(GroupHandler gh, Chart.Note ev, PdtRuleset rs) : base() {
this.gh = gh;
Event = ev;
ruleset = rs;
judge = j;
}
public override string TypeName {
@@ -43,8 +42,7 @@ namespace Cryville.Crtr {
base.Awake(s);
if (s.CloneType == 2) {
if (!gogroup) return;
Chart.Note tev = Event;
if (tev.IsLong) {
if (Event.IsLong) {
foreach (var i in sgos) {
i.Reset();
i.AppendPoint(Position, Rotation);