Example #1
0
 public override void init()
 {
     this._mapCalc = new mapCalc(this);
     this.g_mgr.g_gameM.addEventListenerCL("LG_JOIN_WORLD", 3034u, new Action <GameEvent>(this.onJoinWorld));
     this.g_mgr.g_gameM.addEventListenerCL("LG_JOIN_WORLD", 3035u, new Action <GameEvent>(this.onChangeMap));
     this.g_mgr.addEventListener(2166u, new Action <GameEvent>(this.onAddFlyEff));
 }
Example #2
0
        override public void init()
        {
            _mapCalc = new mapCalc(this);
            this.g_mgr.g_gameM.addEventListenerCL(
                OBJECT_NAME.LG_JOIN_WORLD,
                GAME_EVENT.ON_ENTER_GAME,
                onJoinWorld
                );

            this.g_mgr.g_gameM.addEventListenerCL(
                OBJECT_NAME.LG_JOIN_WORLD,
                GAME_EVENT.ON_MAP_CHANGE,
                onChangeMap
                );
            this.g_mgr.addEventListener(
                GAME_EVENT.MAP_ADD_FLY_EFF,
                onAddFlyEff
                );
        }