Code cleanup.
This commit is contained in:
@@ -529,7 +529,7 @@ namespace Cryville.Crtr {
|
|||||||
foreach (var ts in gs.Value.Children) {
|
foreach (var ts in gs.Value.Children) {
|
||||||
ContainerHandler th;
|
ContainerHandler th;
|
||||||
if (ts.Key is Chart.Note) {
|
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 {
|
else {
|
||||||
th = new TrackHandler(gh, (Chart.Track)ts.Key);
|
th = new TrackHandler(gh, (Chart.Track)ts.Key);
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ namespace Cryville.Crtr.Event {
|
|||||||
public Transform gogroup;
|
public Transform gogroup;
|
||||||
|
|
||||||
public readonly Dictionary<string, Anchor> Anchors = new Dictionary<string, Anchor>();
|
public readonly Dictionary<string, Anchor> Anchors = new Dictionary<string, Anchor>();
|
||||||
public Transform a_head;
|
protected Transform a_head;
|
||||||
public Transform a_tail;
|
protected Transform a_tail;
|
||||||
public Vector3 Position {
|
public Vector3 Position {
|
||||||
get;
|
get;
|
||||||
protected set;
|
protected set;
|
||||||
@@ -64,8 +64,8 @@ namespace Cryville.Crtr.Event {
|
|||||||
get { return cs.Container; }
|
get { return cs.Container; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public SkinContainer skinContainer;
|
SkinContainer skinContainer;
|
||||||
public Judge judge;
|
protected Judge judge;
|
||||||
public void AttachSystems(PdtSkin skin, Judge judge) {
|
public void AttachSystems(PdtSkin skin, Judge judge) {
|
||||||
skinContainer = new SkinContainer(skin);
|
skinContainer = new SkinContainer(skin);
|
||||||
this.judge = judge;
|
this.judge = judge;
|
||||||
|
|||||||
@@ -11,11 +11,10 @@ namespace Cryville.Crtr {
|
|||||||
readonly GroupHandler gh;
|
readonly GroupHandler gh;
|
||||||
public readonly Chart.Note Event;
|
public readonly Chart.Note Event;
|
||||||
readonly PdtRuleset ruleset;
|
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;
|
this.gh = gh;
|
||||||
Event = ev;
|
Event = ev;
|
||||||
ruleset = rs;
|
ruleset = rs;
|
||||||
judge = j;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string TypeName {
|
public override string TypeName {
|
||||||
@@ -43,8 +42,7 @@ namespace Cryville.Crtr {
|
|||||||
base.Awake(s);
|
base.Awake(s);
|
||||||
if (s.CloneType == 2) {
|
if (s.CloneType == 2) {
|
||||||
if (!gogroup) return;
|
if (!gogroup) return;
|
||||||
Chart.Note tev = Event;
|
if (Event.IsLong) {
|
||||||
if (tev.IsLong) {
|
|
||||||
foreach (var i in sgos) {
|
foreach (var i in sgos) {
|
||||||
i.Reset();
|
i.Reset();
|
||||||
i.AppendPoint(Position, Rotation);
|
i.AppendPoint(Position, Rotation);
|
||||||
|
|||||||
Reference in New Issue
Block a user