Пример #1
0
            internal static _SetTimeOfDay SetTimeOfDay()
            {
                if (_SetTimeOfDayFunc == null)
                {
                    _SetTimeOfDayFunc =
                        (_SetTimeOfDay)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_setTimeOfDay"), typeof(_SetTimeOfDay));
                }

                return(_SetTimeOfDayFunc);
            }
Пример #2
0
            internal static _SetTimeOfDay SetTimeOfDay()
            {
                if (_SetTimeOfDayFunc == null)
                {
                    _SetTimeOfDayFunc =
                        (_SetTimeOfDay)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_setTimeOfDay"), typeof(_SetTimeOfDay));
                }

                return(_SetTimeOfDayFunc);
            }