예제 #1
0
 // Set the day/night cycle of area
 // type = NWNX_AREA_DAYNIGHTCYCLE_*
 public static void SetDayNightCycle(uint area, DayNightCycleType type)
 {
     Internal.NativeFunctions.nwnxSetFunction(PLUGIN_NAME, "SetDayNightCycle");
     Internal.NativeFunctions.nwnxPushInt(type.InternalValue);
     Internal.NativeFunctions.nwnxPushObject(area);
     Internal.NativeFunctions.nwnxCallFunction();
 }
예제 #2
0
파일: area.cs 프로젝트: nwnstuff/nwn-csharp
        // Set the day/night cycle of area
        // type = NWNX_AREA_DAYNIGHTCYCLE_*
        public static void SetDayNightCycle(uint area, DayNightCycleType type)
        {
            Internal.NativeFunctions.nwnxSetFunction(PluginName, "SetDayNightCycle");

            Internal.NativeFunctions.nwnxPushInt((int)type);
            Internal.NativeFunctions.nwnxPushObject(area);
            Internal.NativeFunctions.nwnxCallFunction();
        }