Wrap SongEventData in an abstract so we can overload operators.

Static methods

staticclone(this:SongEventDataRaw):SongEventData

Create an independent copy of this event with the same underlying data.

Returns:

The newly created event.

@:op(A == B)staticop_equals(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is equal to another event. Ex. event1 == event2

Parameters:

other

The other event to compare.

Returns:

Whether the events have the same time, kind, and data.

@:op(A > B)staticop_greaterThan(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is later than another event. Ex. event1 > event2

Parameters:

other

The other event to compare.

Returns:

Bool

@:op(A >= B)staticop_greaterThanOrEquals(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is later than or at the same time as another event. Ex. event1 >= event2

Parameters:

other

The other event to compare.

Returns:

Whether this event is later than or at the same time as the other event.

@:op(A < B)staticop_lessThan(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is earlier than another event. Ex. event1 < event2

Parameters:

other

The other event to compare.

Returns:

Whether this event is earlier than the other event.

@:op(A <= B)staticop_lessThanOrEquals(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is earlier than or at the same time as another event. Ex. event1 <= event2

Parameters:

other

The other event to compare.

Returns:

Whether this event is earlier than or at the same time as the other event.

@:op(A != B)staticop_notEquals(this:SongEventDataRaw, other:SongEventData):Bool

Check whether this event is not equal to another event. Ex. event1 != event2

Parameters:

other

The other event to compare.

Returns:

Whether the events have a different same time, kind, or data.

statictoString(this:SongEventDataRaw):String

Produces a string representation of this event, suitable for debugging.