Code cleanup.

This commit is contained in:
2023-01-14 22:03:08 +08:00
parent 4fdd4e1935
commit c39f258a19
4 changed files with 8 additions and 10 deletions

View File

@@ -10,11 +10,9 @@ namespace Cryville.Crtr {
public class NoteHandler : ContainerHandler {
readonly GroupHandler gh;
public readonly Chart.Note Event;
readonly PdtRuleset ruleset;
public NoteHandler(GroupHandler gh, Chart.Note ev, PdtRuleset rs) : base() {
this.gh = gh;
public NoteHandler(Chart.Note ev, GroupHandler gh) : base() {
Event = ev;
ruleset = rs;
this.gh = gh;
}
public override string TypeName {
@@ -46,8 +44,8 @@ namespace Cryville.Crtr {
base.PreInit();
foreach (var j in Event.judges) {
judges.Add(j, new JudgeState(this, j.Id.Key));
}
}
}
public override void Init() {
base.Init();
sgos = gogroup.GetComponentsInChildren<SectionalGameObject>();