Esempio n. 1
0
 // 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();
 }
Esempio n. 2
0
 // 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());
 }
Esempio n. 3
0
        // 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();
        }
Esempio n. 4
0
        // 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());
        }