예제 #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();
 }
예제 #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());
 }
예제 #3
0
파일: area.cs 프로젝트: nwnstuff/nwn-csharp
        // 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();
        }
예제 #4
0
파일: area.cs 프로젝트: nwnstuff/nwn-csharp
        // 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());
        }