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