예제 #1
0
        //---------------------------------------------------------------------
        public void destroy()
        {
            if (mEntityFactory != null)
            {
                mEntityFactory = null;
            }

            if (mParticleSystemDataPrototype != null)
            {
                mParticleSystemDataPrototype = null;
            }

            if (mRouteObjectMgr != null)
            {
                mRouteObjectMgr = null;
            }

            if (mParticleSystemFactory != null)
            {
                mParticleSystemFactory.destroy();
                mParticleSystemFactory = null;
            }

            if (mParticleSystemKeeper != null)
            {
                mParticleSystemKeeper.destroy();
                mParticleSystemKeeper = null;
            }

            if (mBaseEntityKeeper != null)
            {
                mBaseEntityKeeper.destroy();
                mBaseEntityKeeper = null;
            }
        }
예제 #2
0
 //---------------------------------------------------------------------
 public void create(List <JsonPacket> json_packet_list, List <RouteJsonPacket> route_json_packet_list)
 {
     mParticleSystemDataPrototype = new ParticleSystemDataPrototype(json_packet_list, mParticleSystemFactory);
     mParticleSystemKeeper        = new ParticleSystemKeeper();
     mBaseEntityKeeper            = new BaseEntityKeeper();
     mRouteObjectMgr = new RouteObjectMgr(route_json_packet_list);
 }