Show / Hide Table of Contents

Class FileSystemResourceProvider

Basic resource provider that provides resources based on the files within the resource directory (as configured in the server's configuration)

Inheritance
object
FileSystemResourceProvider
Implements
IResourceProvider
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.Providers
Assembly: SlipeServer.Server.dll
Syntax
public class FileSystemResourceProvider : IResourceProvider

Constructors

| Edit this page View Source

FileSystemResourceProvider(MtaServer)

Declaration
public FileSystemResourceProvider(MtaServer mtaServer)
Parameters
Type Name Description
MtaServer mtaServer

Methods

| Edit this page View Source

AddResourceInterpreter(IResourceInterpreter)

Declaration
public void AddResourceInterpreter(IResourceInterpreter resourceInterpreter)
Parameters
Type Name Description
IResourceInterpreter resourceInterpreter
| Edit this page View Source

GetFileContent(string, string)

Declaration
public byte[] GetFileContent(string resource, string file)
Parameters
Type Name Description
string resource
string file
Returns
Type Description
byte[]
| Edit this page View Source

GetFilesForResource(string)

Declaration
public IEnumerable<string> GetFilesForResource(string name)
Parameters
Type Name Description
string name
Returns
Type Description
IEnumerable<string>
| Edit this page View Source

GetResource(string)

Declaration
public Resource GetResource(string name)
Parameters
Type Name Description
string name
Returns
Type Description
Resource
| Edit this page View Source

GetResources()

Declaration
public IEnumerable<Resource> GetResources()
Returns
Type Description
IEnumerable<Resource>
| Edit this page View Source

Refresh()

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

ReserveNetId()

Declaration
public ushort ReserveNetId()
Returns
Type Description
ushort

Implements

IResourceProvider
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX