예제 #1
0
            internal static _AddTimeOfDayEvent AddTimeOfDayEvent()
            {
                if (_AddTimeOfDayEventFunc == null)
                {
                    _AddTimeOfDayEventFunc =
                        (_AddTimeOfDayEvent)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_addTimeOfDayEvent"), typeof(_AddTimeOfDayEvent));
                }

                return(_AddTimeOfDayEventFunc);
            }
예제 #2
0
            internal static _AddTimeOfDayEvent AddTimeOfDayEvent()
            {
                if (_AddTimeOfDayEventFunc == null)
                {
                    _AddTimeOfDayEventFunc =
                        (_AddTimeOfDayEvent)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnTimeOfDay_addTimeOfDayEvent"), typeof(_AddTimeOfDayEvent));
                }

                return(_AddTimeOfDayEventFunc);
            }