Show / Hide Table of Contents

Class ResourceService

Service that allows simple ways to start and stop resources (for all players)

Inheritance
object
ResourceService
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 ResourceService

Constructors

| Edit this page View Source

ResourceService(MtaServer, RootElement, IResourceProvider)

Declaration
public ResourceService(MtaServer server, RootElement root, IResourceProvider resourceProvider)
Parameters
Type Name Description
MtaServer server
RootElement root
IResourceProvider resourceProvider

Properties

| Edit this page View Source

StartedResources

Declaration
public IReadOnlyCollection<Resource> StartedResources { get; }
Property Value
Type Description
IReadOnlyCollection<Resource>

Methods

| Edit this page View Source

StartResource(string)

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

StopResource(Resource)

Declaration
public void StopResource(Resource resource)
Parameters
Type Name Description
Resource resource
| Edit this page View Source

StopResource(string)

Declaration
public void StopResource(string name)
Parameters
Type Name Description
string name
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX