// Get an admin_debug "Administration Debug Type" value. // An "Administration Debug Type" // The current value for the supplied debug type from admin_debug "Administration Debug Types". public static bool GetDebugValue(AdministrationDebugType type) { Internal.NativeFunctions.nwnxSetFunction(PLUGIN_NAME, "GetDebugValue"); Internal.NativeFunctions.StackPushInteger((int)type); Internal.NativeFunctions.nwnxCallFunction(); return(Internal.NativeFunctions.nwnxPopInt() == 1); }
// Set an "Administration Debug Type" to a value. // The debug type to adjust from "Administration Debug Types". // The new state for the debug type, true or false public static void SetDebugValue(AdministrationDebugType type, bool state) { Internal.NativeFunctions.nwnxSetFunction(PLUGIN_NAME, "SetDebugValue"); Internal.NativeFunctions.StackPushInteger(state ? 1 : 0); Internal.NativeFunctions.StackPushInteger((int)type); Internal.NativeFunctions.nwnxCallFunction(); }
public static void SetDebugValue(AdministrationDebugType type, int state) { var sFunc = "SetDebugValue"; NWNXCore.NWNX_PushArgumentInt(state); NWNXCore.NWNX_PushArgumentInt((int)type); NWNXCore.NWNX_CallFunction(NWNX_Administration, sFunc); }