Exemple #1
0
            internal static void setPosition(IntPtr thisPtr, float position)
            {
                if (_setPositionFunc == null)
                {
                    _setPositionFunc =
                        (_setPosition)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_PathCamera_setPosition"), typeof(_setPosition));
                }

                _setPositionFunc(thisPtr, position);
            }
Exemple #2
0
            internal static bool setPosition(IntPtr thisPtr, int newPosition)
            {
                if (_setPositionFunc == null)
                {
                    _setPositionFunc =
                        (_setPosition)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_StreamObject_setPosition"), typeof(_setPosition));
                }

                return(_setPositionFunc(thisPtr, newPosition));
            }
Exemple #3
0
            internal static void setPosition(IntPtr thisPtr, int x, int y)
            {
                if (_setPositionFunc == null)
                {
                    _setPositionFunc =
                        (_setPosition)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_GuiControl_setPosition"), typeof(_setPosition));
                }

                _setPositionFunc(thisPtr, x, y);
            }
            internal static void setPosition(IntPtr thisPtr, InternalPoint3FStruct pos)
            {
                if (_setPositionFunc == null)
                {
                    _setPositionFunc =
                        (_setPosition)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_SceneObject_setPosition"), typeof(_setPosition));
                }

                _setPositionFunc(thisPtr, pos);
            }