コード例 #1
0
 private void Set_Handle(AssetHandle newhandle)
 {
     var info = (this.DataContext as PropertyValueConverter.PropertyInfo);
     System.Reflection.PropertyInfo i = info.PropertyObj.GetType().GetProperty(info.PropertyName);
     i.SetValue(info.PropertyObj, newhandle);
     info.PropertyValue = newhandle;
 }
コード例 #2
0
 public AssetHandle(AssetHandle rhs) : this(SharpMochaPINVOKE.new_AssetHandle__SWIG_1(AssetHandle.getCPtr(rhs)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public void AddAnimation(AssetHandle anim)
 {
     SharpMochaPINVOKE.CAnimationController_AddAnimation(swigCPtr, AssetHandle.getCPtr(anim));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public void SetTexture(AssetHandle hnd)
 {
     SharpMochaPINVOKE.TextureNode_SetTexture__SWIG_0(swigCPtr, AssetHandle.getCPtr(hnd));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
 public override void SetMesh(AssetHandle meshHandle)
 {
     SharpMochaPINVOKE.CSkinMeshRenderer_SetMesh(swigCPtr, AssetHandle.getCPtr(meshHandle));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #6
0
        public AssetHandle GetAsset(string assetId)
        {
            AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.AssetManager_GetAsset__SWIG_1(swigCPtr, assetId), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
 public bool CanDropOn(AssetHandle handle)
 {
     if (!handle.Valid())
         return true;
     string underlyingtype = handle.GetUnderlyingAssetType();
     if (underlyingtype == type)
         return true;
     if (marshal_type != null && underlyingtype == marshal_type)
         return true;
     return false;
 }
コード例 #8
0
 public override void SetMesh(AssetHandle meshHandle)
 {
     SharpMochaPINVOKE.CSkinMeshRenderer_SetMesh(swigCPtr, AssetHandle.getCPtr(meshHandle));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
        public AssetHandle GetTexture()
        {
            AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.TextureNode_GetTexture(swigCPtr), false);

            return(ret);
        }
コード例 #10
0
 public AssetHandle(AssetHandle rhs)
     : this(SharpMochaPINVOKE.new_AssetHandle__SWIG_1(AssetHandle.getCPtr(rhs)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #11
0
        public AssetHandle GetAsset(uint assetId)
        {
            AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.AssetManager_GetAsset__SWIG_0(swigCPtr, assetId), true);

            return(ret);
        }
コード例 #12
0
 public AssetHandle GetTexture()
 {
     AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.TextureNode_GetTexture(swigCPtr), false);
     return ret;
 }
コード例 #13
0
 public void SetTexture(AssetHandle hnd)
 {
     SharpMochaPINVOKE.TextureNode_SetTexture__SWIG_0(swigCPtr, AssetHandle.getCPtr(hnd));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #14
0
 public void AddAnimation(AssetHandle anim)
 {
     SharpMochaPINVOKE.CAnimationController_AddAnimation(swigCPtr, AssetHandle.getCPtr(anim));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #15
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AssetHandle obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #16
0
 public AssetHandle GetAsset(uint assetId)
 {
     AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.AssetManager_GetAsset__SWIG_0(swigCPtr, assetId), true);
     return ret;
 }
コード例 #17
0
 public AssetHandle GetAsset(string assetId)
 {
     AssetHandle ret = new AssetHandle(SharpMochaPINVOKE.AssetManager_GetAsset__SWIG_1(swigCPtr, assetId), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #18
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(AssetHandle obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }