예제 #1
0
            internal static _GetNumDeathAnimations GetNumDeathAnimations()
            {
                if (_GetNumDeathAnimationsFunc == null)
                {
                    _GetNumDeathAnimationsFunc =
                        (_GetNumDeathAnimations)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnPlayer_getNumDeathAnimations"), typeof(_GetNumDeathAnimations));
                }

                return(_GetNumDeathAnimationsFunc);
            }
예제 #2
0
파일: Player.cs 프로젝트: lukaspj/T3DSharp
            internal static _GetNumDeathAnimations GetNumDeathAnimations()
            {
                if (_GetNumDeathAnimationsFunc == null)
                {
                    _GetNumDeathAnimationsFunc =
                        (_GetNumDeathAnimations)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnPlayer_getNumDeathAnimations"), typeof(_GetNumDeathAnimations));
                }

                return(_GetNumDeathAnimationsFunc);
            }