Beispiel #1
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);
                }
Beispiel #2
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);
                    }