Example #1
0
                protected IntPtr EarthView_World_Graphic_CParticleAffectorFactory_createAffector_CParticleAffector_CParticleSystem_Function(IntPtr psys)
                {
                    EarthView.World.Graphic.ParticleSystem csobj_psys = new EarthView.World.Graphic.ParticleSystem(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_psys.BindNativeObject(psys, "CParticleSystem");
                    csobj_psys.Delegate = true;
                    IClassFactory csobj_psysClassFactory = GlobalClassFactoryMap.Get(csobj_psys.GetCppInstanceTypeName());

                    if (csobj_psysClassFactory != null)
                    {
                        csobj_psys.Delegate = true;
                        csobj_psys          = csobj_psysClassFactory.Create() as EarthView.World.Graphic.ParticleSystem;
                        csobj_psys.BindNativeObject(psys, "CParticleSystem");
                        csobj_psys.Delegate = true;
                    }

                    EarthView.World.Graphic.ParticleAffector csret = CreateAffector(csobj_psys);

                    if (!object.Equals(csret, null))
                    {
                        csret.Delegate = true;
                        return(csret.NativeObject);
                    }
                    else
                    {
                        return(IntPtr.Zero);
                    }
                }
Example #2
0
                protected void EarthView_World_Graphic_CParticleAffectorFactory_destroyAffector_void_CParticleAffector_Function(IntPtr e)
                {
                    EarthView.World.Graphic.ParticleAffector csobj_e = new EarthView.World.Graphic.ParticleAffector(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_e.BindNativeObject(e, "CParticleAffector");
                    csobj_e.Delegate = true;
                    IClassFactory csobj_eClassFactory = GlobalClassFactoryMap.Get(csobj_e.GetCppInstanceTypeName());

                    if (csobj_eClassFactory != null)
                    {
                        csobj_e.Delegate = true;
                        csobj_e          = csobj_eClassFactory.Create() as EarthView.World.Graphic.ParticleAffector;
                        csobj_e.BindNativeObject(e, "CParticleAffector");
                        csobj_e.Delegate = true;
                    }

                    DestroyAffector(csobj_e);
                }
Example #3
0
                    public override EarthView.World.Graphic.ParticleAffector CreateAffector(EarthView.World.Graphic.ParticleSystem psys)
                    {
                        IntPtr __ptr = EarthView_World_Plugin_ParticleFX_CColourImageAffectorFactory_createAffector_CParticleAffector_CParticleSystem(this.NativeObject, object.Equals(psys, null) ? IntPtr.Zero : psys.NativeObject);

                        if (__ptr == IntPtr.Zero)
                        {
                            return(null);
                        }
                        EarthView.World.Graphic.ParticleAffector csObj = new EarthView.World.Graphic.ParticleAffector(CreatedWhenConstruct.CWC_NotToCreate);
                        csObj.BindNativeObject(__ptr, "CParticleAffector");
                        csObj.Delegate = true;
                        IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                        if (csObjClassFactory != null)
                        {
                            csObj.Delegate = true;
                            csObj          = csObjClassFactory.Create() as EarthView.World.Graphic.ParticleAffector;
                            csObj.BindNativeObject(__ptr, "CParticleAffector");
                            csObj.Delegate = true;
                        }
                        return(csObj);
                    }
Example #4
0
 public override void DestroyAffector(EarthView.World.Graphic.ParticleAffector e)
 {
     base.DestroyAffector_NoVirtual(e);
 }
Example #5
0
 /// <summary>
 /// 销毁参数指针指向的效果器
 /// </summary>
 /// <param name="e">指向粒子效果器的指针</param>
 /// <returns></returns>
 public virtual void DestroyAffector(EarthView.World.Graphic.ParticleAffector e)
 {
     EarthView_World_Graphic_CParticleAffectorFactory_destroyAffector_void_CParticleAffector(this.NativeObject, object.Equals(e, null) ? IntPtr.Zero : e.NativeObject);
 }