Пример #1
0
            internal static _SetDayLength SetDayLength()
            {
                if (_SetDayLengthFunc == null)
                {
                    _SetDayLengthFunc =
                        (_SetDayLength)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_setDayLength"), typeof(_SetDayLength));
                }

                return(_SetDayLengthFunc);
            }
Пример #2
0
            internal static _SetDayLength SetDayLength()
            {
                if (_SetDayLengthFunc == null)
                {
                    _SetDayLengthFunc =
                        (_SetDayLength)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_setDayLength"), typeof(_SetDayLength));
                }

                return(_SetDayLengthFunc);
            }