EffectProvider
Namespace: SharpPluginLoader.Core.Resources
Represents an instance of the rEffectProvider class.
public class EffectProvider : Resource
Inheritance Object → NativeWrapper → MtObject → Resource → EffectProvider
Properties
FilePath
Gets the file path of this resource without the extension.
public string FilePath { get; }
Property Value
FileExtension
Gets the file extension of this resource.
public string FileExtension { get; }
Property Value
RefCount
Gets the reference count of this resource. If the reference count reaches 0, the resource is unloaded.
public uint RefCount { get; }
Property Value
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
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