// Set the weather chance of type in area // type = NWNX_AREA_WEATHER_CHANCE_* // chance = 0-100 public static void SetWeatherChance(uint area, WeatherEffectType type, int chance) { Internal.NativeFunctions.nwnxSetFunction(PLUGIN_NAME, "SetWeatherChance"); Internal.NativeFunctions.nwnxPushInt(chance); Internal.NativeFunctions.nwnxPushInt(type.InternalValue); Internal.NativeFunctions.nwnxPushObject(area); Internal.NativeFunctions.nwnxCallFunction(); }
// Get the weather chance of type in area // type = NWNX_AREA_WEATHER_CHANCE_* public static int GetWeatherChance(uint area, WeatherEffectType type) { Internal.NativeFunctions.nwnxSetFunction(PLUGIN_NAME, "GetWeatherChance"); Internal.NativeFunctions.nwnxPushInt(type.InternalValue); Internal.NativeFunctions.nwnxPushObject(area); Internal.NativeFunctions.nwnxCallFunction(); return(Internal.NativeFunctions.nwnxPopInt()); }
// Set the weather chance of type in area // type = NWNX_AREA_WEATHER_CHANCE_* // chance = 0-100 public static void SetWeatherChance(uint area, WeatherEffectType type, int chance) { Internal.NativeFunctions.nwnxSetFunction(PluginName, "SetWeatherChance"); Internal.NativeFunctions.nwnxPushInt(chance); Internal.NativeFunctions.nwnxPushInt((int)type); Internal.NativeFunctions.nwnxPushObject(area); Internal.NativeFunctions.nwnxCallFunction(); }
// Get the weather chance of type in area // type = NWNX_AREA_WEATHER_CHANCE_* public static int GetWeatherChance(uint area, WeatherEffectType type) { Internal.NativeFunctions.nwnxSetFunction(PluginName, "GetWeatherChance"); Internal.NativeFunctions.nwnxPushInt((int)type); Internal.NativeFunctions.nwnxPushObject(area); Internal.NativeFunctions.nwnxCallFunction(); return(Internal.NativeFunctions.nwnxPopInt()); }