Urho
1.0.0.0
Urho.UrhoObject
Subsystem for file and directory operations and access control.
To be added.
Constructor
1.0.0.0
Preserve
Constructs a new instance of Urho.IO.FileSystem which is tied to the .
Constructor
1.0.0.0
Preserve
Pointer to the raw unmanaged Urho object.
Constructs a new instance of Urho.IO.FileSystem, 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
Preserve
The context that this object will be attached to.
Constructs a new instance of Urho.IO.FileSystem linked to a specific .
Constructor
1.0.0.0
Preserve
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.
Event
1.0.0.0
System.Action<Urho.IO.AsyncExecFinishedEventArgs>
To be added.
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.
Method
1.0.0.0
System.Boolean
To be added.
Check if a path is allowed to be accessed. If no paths are registered, all are allowed.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
To be added.
Copy a file. Return true if successful.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Create a directory.
To be added.
To be added.
Property
1.0.0.0
System.String
Return the absolute current working directory.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Delete a file. Return true if successful.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Check if a directory exists.
To be added.
To be added.
Property
1.0.0.0
System.Boolean
Return whether is executing engine console commands as OS-specific system command.
Or
Set whether to execute engine console commands as OS-specific system command.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Check if a file exists.
To be added.
To be added.
Method
1.0.0.0
System.String
To be added.
To be added.
Return the application preferences directory.
To be added.
To be added.
Method
1.0.0.0
System.UInt32
To be added.
Returns the file's last modified time as seconds since 1.1.1970, or 0 if can not be accessed.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
Return whether paths have been registered.
To be added.
To be added.
Property
1.0.0.0
System.String
Return the program's directory. If it does not contain the Urho3D default CoreData and Data directories, and the current working directory does, return the working directory instead.
To be added.
To be added.
Method
1.0.0.0
System.Void
To be added.
Register a path as allowed to access. If no paths are registered, all are allowed. Registering allowed paths is considered securing the Urho3D execution environment: running programs and opening files externally through the system will fail afterward.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
To be added.
Rename a file. Return true if successful.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Set the current working directory.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
To be added.
Set a file's last modified time as seconds since 1.1.1970. Return true on success.
To be added.
To be added.
Method
1.0.0.0
System.Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncExecFinished += ...' instead.")
Urho.Subscription
The handler to invoke when this event is raised.
Subscribes to the AsyncExecFinished event raised by the FileSystem.
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
System.Int32
To be added.
To be added.
Run a program using the command interpreter, block until it exits and return the exit code. Will fail if any allowed paths are defined.
To be added.
To be added.
Method
1.0.0.0
System.UInt32
To be added.
Run a program using the command interpreter asynchronously. Return a request ID or M_MAX_UNSIGNED if failed. The exit code will be posted together with the request ID in an AsyncExecFinished event. Will fail if any allowed paths are defined.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
To be added.
Open a file in an external program, with mode such as "edit" optionally specified. Will fail if any allowed paths are defined.
To be added.
To be added.
Property
1.0.0.0
System.String
Return path of temporary directory. Path always ends with a forward slash.
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
Preserve
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.
Property
1.0.0.0
System.String
Return the user documents directory.
To be added.
To be added.