Show / Hide Table of Contents

Class Resource

Represents a client-side Lua resource

Inheritance
object
Resource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Resources
Assembly: SlipeServer.Server.dll
Syntax
public class Resource

Constructors

| Edit this page View Source

Resource(MtaServer, RootElement, string, string?)

Declaration
public Resource(MtaServer server, RootElement root, string name, string? path = null)
Parameters
Type Name Description
MtaServer server
RootElement root
string name
string path

Properties

| Edit this page View Source

DynamicRoot

Declaration
public DummyElement DynamicRoot { get; }
Property Value
Type Description
DummyElement
| Edit this page View Source

Exports

Declaration
public List<string> Exports { get; init; }
Property Value
Type Description
List<string>
| Edit this page View Source

Files

Declaration
public List<ResourceFile> Files { get; init; }
Property Value
Type Description
List<ResourceFile>
| Edit this page View Source

IsOopEnabled

Declaration
public bool IsOopEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

NetId

Declaration
public ushort NetId { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

NoClientScripts

Declaration
public Dictionary<string, byte[]> NoClientScripts { get; init; }
Property Value
Type Description
Dictionary<string, byte[]>
| Edit this page View Source

Path

Declaration
public string Path { get; }
Property Value
Type Description
string
| Edit this page View Source

PriorityGroup

Declaration
public int PriorityGroup { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Root

Declaration
public DummyElement Root { get; }
Property Value
Type Description
DummyElement

Methods

| Edit this page View Source

Start()

Declaration
public void Start()
| Edit this page View Source

StartFor(Player)

Declaration
public void StartFor(Player player)
Parameters
Type Name Description
Player player
| Edit this page View Source

StartForAsync(Player, CancellationToken)

Declaration
public Task StartForAsync(Player player, CancellationToken cancelationToken = default)
Parameters
Type Name Description
Player player
CancellationToken cancelationToken
Returns
Type Description
Task
| Edit this page View Source

Stop()

Declaration
public void Stop()
| Edit this page View Source

StopFor(Player)

Declaration
public void StopFor(Player player)
Parameters
Type Name Description
Player player
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX