Class SharedResource
Represents an MTA resource
Inheritance
SharedResource
Assembly: SlipeShared.dll
Syntax
public class SharedResource
Properties
|
Improve this Doc
View Source
DynamicRoot
This function retrieves the dynamic element root of a specified resource.
The dynamic element root is the parent of elements that are created by scripts unless they specify a different parent.
Declaration
public Element DynamicRoot { get; }
Property Value
|
Improve this Doc
View Source
ExportedFunctions
Returns an array containing the names of the functions that a resource exports.
Declaration
public string[] ExportedFunctions { get; }
Property Value
|
Improve this Doc
View Source
MtaResource
Declaration
protected MtaResource MtaResource { get; set; }
Property Value
Type |
Description |
Slipe.MtaDefinitions.MtaResource |
|
|
Improve this Doc
View Source
Name
Get the name of this resource
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
Root
This function retrieves a resource's root element.
Declaration
public Element Root { get; }
Property Value
|
Improve this Doc
View Source
State
This function returns the state of a given resource
Declaration
public string State { get; }
Property Value
Methods
|
Improve this Doc
View Source
Config(String)
This function is used to return the root node of a configuration file.
Declaration
public XmlNode Config(string filePath)
Parameters
Type |
Name |
Description |
String |
filePath |
|
Returns
|
Improve this Doc
View Source
Invoke(String, Object[])
Declaration
public object Invoke(string functionName, params object[] parameters)
Parameters
Type |
Name |
Description |
String |
functionName |
|
Object[] |
parameters |
|
Returns