Show / Hide Table of Contents

Class SharedResource

Represents an MTA resource

Inheritance
Object
SharedResource
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Resources
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
Type Description
Element
| 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
Type Description
String[]
| 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
Type Description
String
| Improve this Doc View Source

Root

This function retrieves a resource's root element.

Declaration
public Element Root { get; }
Property Value
Type Description
Element
| Improve this Doc View Source

State

This function returns the state of a given resource

Declaration
public string State { get; }
Property Value
Type Description
String

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
Type Description
XmlNode
| 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
Type Description
Object
  • Improve this Doc
  • View Source
Back to top Generated by DocFX