Exemplo n.º 1
0
            internal static int spawnObject(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string additionalProps)
            {
                if (_spawnObjectFunc == null)
                {
                    _spawnObjectFunc =
                        (_spawnObject)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_SpawnSphere_spawnObject"), typeof(_spawnObject));
                }

                return(_spawnObjectFunc(thisPtr, additionalProps));
            }
Exemplo n.º 2
0
 set => SetProperty(ref _spawnObject, value);