CustomEvent PropertiesRobocode Robot API for .NET
The CustomEvent type exposes the following members.
Properties

  NameDescription
Public propertyCondition
Returns the condition that fired, causing this event to be generated. Use this to determine which condition fired, and to remove the custom event.
Examples

public void OnCustomEvent(CustomEvent evnt)
{
    if (event.Condition.Name == "mycondition")
    {
        RemoveCustomEvent(event.Condition);
        // do something else
    }
}
Public propertyPriority (Overrides Event Priority.)
Public propertyTime
The time when this event occurred.
(Inherited from Event.)
Back to Top
See Also