//--------------------------------------------------------------------- public override void enter() { IRenderListener listener = mScene.getListener(); if (listener != null) { //listener.onSceneShowMessageBox("进入新关卡", false, "", 2, (int)_eMessageBoxLayer.EnterNewLevel); } }
/** * Creates a new PDF Content Stream Processor that will send it's output to the * designated render listener. * * @param renderListener the {@link RenderListener} that will receive rendering notifications */ public PdfContentStreamProcessor(IRenderListener renderListener) { this.renderListener = renderListener; operators = new Dictionary <String, IContentOperator>(); PopulateOperators(); xobjectDoHandlers = new Dictionary <PdfName, IXObjectDoHandler>(); PopulateXObjectDoHandlers(); Reset(); }
//------------------------------------------------------------------------- public void destroy() { destroyLevel(); destroyAllTurret(); mParticleTurnplateCallerQueue.Clear(); if (mEffectMgr != null) { mEffectMgr.destroy(); mEffectMgr = null; } CSpriteFishDieScore.DestroyAll(); mSceneBox = null; mListener = null; if (mProtocol != null) { mProtocol.Dispose(); mProtocol = null; } if (mSoundMgr != null) { mSoundMgr.destroyAllSceneSound(); mSoundMgr = null; } if (mRenderObjectPool != null) { mRenderObjectPool.destroy(); mRenderObjectPool = null; } if (mParticlemanager != null) { mParticlemanager.destroy(); mParticlemanager = null; } InputController.Instance.onFingerTouch -= _onFingerTouch; InputController.Instance.onFingerLongPress -= _onFingerLongPress; InputController.Instance.onFingerUp -= _onFingerUp; InputController.Instance.onFingerDragMove -= _onFingerDragMove; InputController.Instance.onFingerTouchTurret -= _onFingerTouchTurret; InputController.Instance.onFingerTouchBuffer -= _onFingerTouchBuffer; InputController.Instance.onFingerTouchFish -= _onFingerTouchFish; InputController.Instance.ActiveInput = true; _uninstallMemory(); }
//----------------------------------------------------------------------------- public string evUpdate(IEbEvent ev) { EbEvent1 <float> e = (EbEvent1 <float>)ev; float elapsed_tm = e.param1; mfCurSecond += elapsed_tm; IRenderListener listener = mScene.getListener(); if (listener != null) { listener.onSceneShowMessageBox("鱼潮来临!!!", false, "", 1, (int)0, false, false);//_eMessageBoxLayer.SwitchLevel } return(""); }
//------------------------------------------------------------------------- public void create(uint my_et_player_rpcid, bool single, bool is_bot, IRenderListener listener, string configure_filepath, List<JsonPacket> json_packet_list, List<RouteJsonPacket> route_json_packet_list) { mMyPlayerId = my_et_player_rpcid; mbSingle = single; mListener = listener; mbInit = false; mIsBot = is_bot; mConfigurePath = configure_filepath; InputController.Instance.onFingerTouch += _onFingerTouch; InputController.Instance.onFingerLongPress += _onFingerLongPress; InputController.Instance.onFingerUp += _onFingerUp; InputController.Instance.onFingerDragMove += _onFingerDragMove; InputController.Instance.onFingerTouchTurret += _onFingerTouchTurret; InputController.Instance.onFingerTouchBuffer += _onFingerTouchBuffer; InputController.Instance.onFingerTouchFish += _onFingerTouchFish; InputController.Instance.ActiveInput = true; CCoordinate.setCoordinate(new EbVector3(Screen.width, Screen.height, 0), EbVector3.Zero, new EbVector3(Screen.width, Screen.height, 0)); mSceneBox = new CSceneBox(); mProtocol = new CRenderProtocol(this); mTurretHelper = new CTurretHelper(); mLayerAlloter = new RenderLayerAlloter(); mEffectMgr = new CEffectMgr(); if (!isBot()) { mEffectMgr.regEffectFactory(new EffectShockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFrameAnimationFactory()); mEffectMgr.regEffectFactory(new EffectPlayAudioFactory()); mEffectMgr.regEffectFactory(new EffectLightingFactory()); mEffectMgr.regEffectFactory(new EffectLockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFullScreenFactory()); mEffectMgr.regEffectFactory(new EffectAOEFactory()); } else { //mEffectMgr.regEffectFactory(new EffectShockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFrameAnimationFactory()); //mEffectMgr.regEffectFactory(new EffectPlayAudioFactory()); mEffectMgr.regEffectFactory(new EffectLightingFactory()); mEffectMgr.regEffectFactory(new EffectLockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFullScreenFactory()); mEffectMgr.regEffectFactory(new EffectAOEFactory()); } mSpriteFishFactory = new SpriteFishFactory(this); mJsonPacketList = json_packet_list; mRouteJsonPacketList = route_json_packet_list; mRenderConfigure = new RenderConfigure(mConfigurePath); mSoundMgr = MbMain.Instance.getSoundMgr(); mRenderObjectPool = new CRenderObjectPool(this); mParticlemanager = new ParticleManager(this); mLoadableManager = new LoadableManager(); mLoadableManager.create(mRenderObjectPool); }
/** * Construction * @param deleg the deleg {@link RenderListener} that will receive filtered text operations * @param filters the Filter(s) to apply */ public FilteredRenderListener(IRenderListener deleg, params RenderFilter[] filters) { this.deleg = deleg; this.filters = filters; }
/** * Creates a new PDF Content Stream Processor that will send it's output to the * designated render listener. * * @param renderListener the {@link RenderListener} that will receive rendering notifications */ public PdfContentStreamProcessor(IRenderListener renderListener) { this.renderListener = renderListener; operators = new Dictionary<String, IContentOperator>(); PopulateOperators(); xobjectDoHandlers = new Dictionary<PdfName, IXObjectDoHandler>(); PopulateXObjectDoHandlers(); Reset(); }
public GlyphRenderListener(IRenderListener deleg) { this.deleg = deleg; }
// // constructor giving the parent a dummy listener to talk to // public PdfContentStreamEditor(IRenderListener renderListener) : base(renderListener) { }
public void UnRegister(IRenderListener listener) { _listeners.Remove(listener); }
public void Register(IRenderListener listener) { _listeners.Add(listener); }
//------------------------------------------------------------------------- public void create(uint my_et_player_rpcid, bool single, bool is_bot, IRenderListener listener, string configure_filepath, List <JsonPacket> json_packet_list, List <RouteJsonPacket> route_json_packet_list) { mMyPlayerId = my_et_player_rpcid; mbSingle = single; mListener = listener; mbInit = false; mIsBot = is_bot; mConfigurePath = configure_filepath; InputController.Instance.onFingerTouch += _onFingerTouch; InputController.Instance.onFingerLongPress += _onFingerLongPress; InputController.Instance.onFingerUp += _onFingerUp; InputController.Instance.onFingerDragMove += _onFingerDragMove; InputController.Instance.onFingerTouchTurret += _onFingerTouchTurret; InputController.Instance.onFingerTouchBuffer += _onFingerTouchBuffer; InputController.Instance.onFingerTouchFish += _onFingerTouchFish; InputController.Instance.ActiveInput = true; CCoordinate.setCoordinate(new EbVector3(Screen.width, Screen.height, 0), EbVector3.Zero, new EbVector3(Screen.width, Screen.height, 0)); mSceneBox = new CSceneBox(); mProtocol = new CRenderProtocol(this); mTurretHelper = new CTurretHelper(); mLayerAlloter = new RenderLayerAlloter(); mEffectMgr = new CEffectMgr(); if (!isBot()) { mEffectMgr.regEffectFactory(new EffectShockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFrameAnimationFactory()); mEffectMgr.regEffectFactory(new EffectPlayAudioFactory()); mEffectMgr.regEffectFactory(new EffectLightingFactory()); mEffectMgr.regEffectFactory(new EffectLockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFullScreenFactory()); mEffectMgr.regEffectFactory(new EffectAOEFactory()); } else { //mEffectMgr.regEffectFactory(new EffectShockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFrameAnimationFactory()); //mEffectMgr.regEffectFactory(new EffectPlayAudioFactory()); mEffectMgr.regEffectFactory(new EffectLightingFactory()); mEffectMgr.regEffectFactory(new EffectLockScreenFactory()); mEffectMgr.regEffectFactory(new EffectFullScreenFactory()); mEffectMgr.regEffectFactory(new EffectAOEFactory()); } mSpriteFishFactory = new SpriteFishFactory(this); mJsonPacketList = json_packet_list; mRouteJsonPacketList = route_json_packet_list; mRenderConfigure = new RenderConfigure(mConfigurePath); mSoundMgr = MbMain.Instance.getSoundMgr(); mRenderObjectPool = new CRenderObjectPool(this); mParticlemanager = new ParticleManager(this); mLoadableManager = new LoadableManager(); mLoadableManager.create(mRenderObjectPool); }