C# Class ALFA.GameEffect

This class encapsulates a wrapper for the native game effect object.
Show file Open project: ALandFarAway/ALFA-Base-Resources

Public Methods

Method Description
GameEffect ( NWScript.NWScriptEngineStructure0 EffectInstance ) : System

Obtain a CGameEffect wrapper for an NWEffect instance.

Private Methods

Method Description
GetGameEffectInstance ( NWScript.NWScriptEngineStructure0 Effect ) : IntPtr

Obtain the internal CGameEffect object for this NWEffect instance.

ObtainGetEngineStructurePtr ( NWScript.NWScriptEngineStructure0 Effect ) : GetEngineStructurePtrDelegate

Obtain a function that can be used to read the m_EngineStructure field out of a NWScriptEngineStructure. A dynamically emitted method is required as the necessary operations cannot be expressed in C# but must be implemented instead in raw MSIL.

ReadGameEffectFields ( ) : void

Obtain data from the internal CGameEffect object.

Method Details

GameEffect() public method

Obtain a CGameEffect wrapper for an NWEffect instance.
public GameEffect ( NWScript.NWScriptEngineStructure0 EffectInstance ) : System
EffectInstance NWScript.NWScriptEngineStructure0 Supplies the instance to wrap.
return System