示例#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;
 }