The Behaviour type exposes the following members.

Constructors

  NameDescription
Public methodBehaviour
Initializes a new instance of the Behaviour class.

Methods

  NameDescription
Public methodAlwaysRun
Convenience function. Set ShouldRun = AlwaysRun to make the behaviour always run.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNeverRun
Convenience function. Set ShouldRun = NeverRun to make it so the behaviour never runs.
Public methodOnStop
Method that is called when this behaviour stops. This can be because the Run method finishes, or behaviour was stopped by another behaviour.
Public methodRun
The method that defines what this behaviour actually does.
Protected methodSleep
Causes this behaviour to pause for the specified number of seconds.
Public methodToString (Inherited from Object.)
Public methodWaitFor<(Of <<'(T>)>>)()()()()
Public methodWaitFor<(Of <<'(T>)>>)(Double)
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>))
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>), Double)

Fields

  NameDescription
Protected fieldnpc

Properties

  NameDescription
Public propertyParent
Gets or sets the parent.
Public propertyShouldRun
Function that determines whether or not this behaviour should run.

See Also