EffectProvider

Namespace: SharpPluginLoader.Core.Resources

Represents an instance of the rEffectProvider class.

public class EffectProvider : Resource

Inheritance ObjectNativeWrapperMtObjectResourceEffectProvider

Properties

FilePath

Gets the file path of this resource without the extension.

public string FilePath { get; }

Property Value

String

FileExtension

Gets the file extension of this resource.

public string FileExtension { get; }

Property Value

String

RefCount

Gets the reference count of this resource. If the reference count reaches 0, the resource is unloaded.

public uint RefCount { get; }

Property Value

UInt32

Instance

The native pointer.

public nint Instance { get; set; }

Property Value

IntPtr

Constructors

EffectProvider(IntPtr)

public EffectProvider(nint instance)

Parameters

instance IntPtr

EffectProvider()

public EffectProvider()

Methods

GetEffect(UInt32, UInt32)

Gets an effect by its group and id which can be passed to Entity.CreateEffect(MtObject).

public MtObject GetEffect(uint group, uint id)

Parameters

group UInt32
The group the effect is in

id UInt32
The id of the effect

Returns

MtObject
The effect or null