Defined in DateTime.Def
Inherits from Object
Class TimedEvent allows you to schedule events at arbitrary times. You'll use class TimedEvent whenever you need to trigger an event at some point in the future. Actually, since TimedEvent uses Time objects to store the time, you could schedule an action to happen in the past (not that that would necessarily do you any good).
Instantiate: sometimes Subclass: sometimes Call its methods: sometimes
The default TimedAction method does nothing, so you'll override it to perform your customs tasks.
Class TimedEvent defines the following methods:
Method | Description |
---|---|
TimedAction | Called by TimedEventList when time comes up; for scripting |
Finalize | Fills in the eventTime field with a fresh Time |
SetIndexedTime | Sets the indexed time |
IndexedTime | Returns the time in milliseconds |
Class TimedEvent defines the following attributes:
Field | Type | Description |
---|---|---|
EventTime | Time | Date/time when TimedAction will be called on self |
Data | Object | Holds arbitrary object for caller's use |
Class TimedEvent defines the following fields:
Field | Type | Description |
---|---|---|
eventTime | Time | Time the event is supposed to happen |
data | Object | Object holder |
operation TimedAction(), scriptable;