Exemple #1
0
                /// <summary>
                /// 返回一个指向下一个粒子的指针,移动迭代器一个元素
                /// </summary>
                /// <param name=""></param>
                /// <returns>返回指向下一个粒子的指针</returns>
                public EarthView.World.Graphic.Particle GetNext()
                {
                    IntPtr __ptr = EarthView_World_Graphic_CParticleIterator_getNext_CParticle(this.NativeObject);

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

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Graphic.Particle;
                        csObj.BindNativeObject(__ptr, "CParticle");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
                protected void EarthView_World_Graphic_CParticleAffector__initParticle_void_CParticle_Function(IntPtr pParticle)
                {
                    EarthView.World.Graphic.Particle csobj_pParticle = new EarthView.World.Graphic.Particle(CreatedWhenConstruct.CWC_NotToCreate);
                    csobj_pParticle.BindNativeObject(pParticle, "CParticle");
                    csobj_pParticle.Delegate = true;
                    IClassFactory csobj_pParticleClassFactory = GlobalClassFactoryMap.Get(csobj_pParticle.GetCppInstanceTypeName());

                    if (csobj_pParticleClassFactory != null)
                    {
                        csobj_pParticle.Delegate = true;
                        csobj_pParticle          = csobj_pParticleClassFactory.Create() as EarthView.World.Graphic.Particle;
                        csobj_pParticle.BindNativeObject(pParticle, "CParticle");
                        csobj_pParticle.Delegate = true;
                    }

                    _initParticle(csobj_pParticle);
                }