Add standalone event property.
This commit is contained in:
@@ -110,7 +110,10 @@ namespace Cryville.Crtr {
|
||||
|
||||
[JsonIgnore]
|
||||
public abstract int Priority { get; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual bool Standalone { get { return false; } }
|
||||
|
||||
public ChartEvent Clone() {
|
||||
return (ChartEvent)MemberwiseClone();
|
||||
}
|
||||
@@ -417,6 +420,7 @@ namespace Cryville.Crtr {
|
||||
#pragma warning restore IDE1006
|
||||
|
||||
public override int Priority { get { return 0; } }
|
||||
public override bool Standalone { get { return true; } }
|
||||
|
||||
public Judge() {
|
||||
SubmitPropSrc("name", new PropSrc.Identifier(() => Id.Key));
|
||||
|
@@ -48,7 +48,7 @@ namespace Cryville.Crtr.Event {
|
||||
}
|
||||
foreach (var ev in c.Events) {
|
||||
if (ev.time == null) {
|
||||
coevents.Add(ev);
|
||||
if (!ev.Standalone) coevents.Add(ev);
|
||||
ev.time = c.time;
|
||||
if (ev is EventContainer)
|
||||
ev.endtime = c.endtime;
|
||||
|
Reference in New Issue
Block a user