Urho
1.0.0.0
Urho.UrhoObject
%Time and frame counter subsystem.
To be added.
Constructor
1.0.0.0
Constructs a new instance of Urho.Time which is tied to the .
Constructor
1.0.0.0
Pointer to the raw unmanaged Urho object.
Constructs a new instance of Urho.Time, given a raw pointer to an unmanaged object
This creates a new managed wrapper for the type using the raw pointer to an unmanaged object.
Objects that are created in this fashion get registered with the UrhoSharp runtime.
This is intended to be used by the UrhoSharp runtime, and is not intended to be used by users.
Constructor
1.0.0.0
The context that this object will be attached to.
Constructs a new instance of Urho.Time linked to a specific .
Constructor
1.0.0.0
Pass UrhoObjectFlag.Empty.
Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.
This constructor should be invoked by your code if you provide your own constructor that sets the handle field.
This essentially circumvents the default path that creates a new object and sets the handle and does not call RegisterObject on the target, you must do this on your own constructor.
You would typically chain to this constructor from your own, and then set the handle to the unmanaged object from your code, and then register your object.
Method
1.0.0.0
System.Void
To be added.
Begin new frame, with (last) frame duration in seconds and send frame start event.
This raises the event.
Property
1.0.0.0
System.Single
Return elapsed time from program start as seconds.
To be added.
To be added.
Method
1.0.0.0
System.Void
End frame. Increment total time and send frame end event.
This raises the event.
Event
1.0.0.0
System.Action<Urho.FrameEndedEventArgs>
End frame event, invoked from the method.
The event can register multiple callbacks and invoke all of them. If this is not desired, and you only need a single shot callback, you can use the method. That one will force that callback and will ignore any previously set events here.
Property
1.0.0.0
System.UInt32
Return frame number, starting from 1 once BeginFrame() is called for the first time.
To be added.
To be added.
Event
1.0.0.0
System.Action<Urho.FrameStartedEventArgs>
Signals the beginning of the new frame.
and react to this to check for operating system window messages and arrived network packets.
Method
1.0.0.0
System.Void
To be added.
Sleep for a number of milliseconds.
To be added.
Method
1.0.0.0
Urho.Subscription
The handler to invoke when this event is raised.
Subscribes to the FrameEnded event raised by the Time.
Returns an Urho.Subscription that can be used to cancel the subscription.
This method will override any prior subscription, including those assigned to on event handlers.
This has the advantage that it does a straight connection and returns a handle that is easy to unsubscribe from.
For a more event-like approach, use the event.
Method
1.0.0.0
Urho.Subscription
The handler to invoke when this event is raised.
Subscribes to the FrameStarted event raised by the Time.
Returns an Urho.Subscription that can be used to cancel the subscription.
This method will override any prior subscription, including those assigned to on event handlers.
This has the advantage that it does a straight connection and returns a handle that is easy to unsubscribe from.
For a more event-like approach, use the event.
Property
1.0.0.0
System.UInt32
Get system time as milliseconds.
To be added.
To be added.
Property
1.0.0.0
System.UInt32
Return current low-resolution timer period in milliseconds.
Or
Set the low-resolution timer period in milliseconds. 0 resets to the default period.
To be added.
To be added.
Property
1.0.0.0
System.UInt32
Get system time as seconds since 1.1.1970.
To be added.
To be added.
Property
1.0.0.0
System.String
Get a date/time stamp as a string.
To be added.
To be added.
Property
1.0.0.0
System.Single
Return current frame timestep as seconds.
To be added.
To be added.
Property
1.0.0.0
Urho.StringHash
Urho's type system type.
StringHash representing the type for this C# type.
This returns the Urho's type and is surfaced for low-level Urho code.
Property
1.0.0.0
System.String
Urho's low-level type name.
Stringified low-level type name.
Property
1.0.0.0
System.String
Urho's low-level type name, accessible as a static method.
Stringified low-level type name.
Property
1.0.0.0
Urho.StringHash
Urho's low-level type, accessible as a static method.
This returns the Urho's type and is surface for the low-level Urho code.