public override void Init()
 {
     base.Init();
     this._campMarkers = new HorizonMarkerByFow.CampMarker[2];
     for (int i = 0; i < this._campMarkers.Length; i++)
     {
         this._campMarkers[i] = new HorizonMarkerByFow.CampMarker();
     }
     this._translucentMarks = 0;
     this.m_bTranslucent    = false;
     this.m_bExposed        = new bool[2];
     Array.Clear(this.m_bExposed, 0, this.m_bExposed.Length);
     this.m_exposedPos = new VInt3[2];
     Array.Clear(this.m_exposedPos, 0, this.m_exposedPos.Length);
     this.m_exposeCampArr = new int[2];
     Array.Clear(this.m_exposeCampArr, 0, this.m_exposeCampArr.Length);
     this.ExposeRadiusCache = Horizon.QueryExposeRadius();
     this.InitExposeTimer();
     this.InitSubParObjList();
 }
Exemple #2
0
        public override void Fight()
        {
            base.Fight();
            if (ActorHelper.IsCaptainActor(ref this.actorPtr))
            {
                this.m_isControledByMan = true;
                this.m_isAutoAI         = false;
            }
            else
            {
                this.m_isControledByMan = false;
                this.m_isAutoAI         = true;
            }
            IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.ServerDataProvider);

            ActorServerData actorServerData = default(ActorServerData);

            if (actorDataProvider != null && actorDataProvider.GetActorServerData(ref this.actor.TheActorMeta, ref actorServerData))
            {
                this.m_skinId    = actorServerData.SkinId;
                this.m_skinCfgId = CSkinInfo.GetSkinCfgId((uint)this.actor.TheActorMeta.ConfigId, this.m_skinId);
                if (this.m_skinId != 0u)
                {
                    ResHeroSkin heroSkin = CSkinInfo.GetHeroSkin((uint)this.actor.TheActorMeta.ConfigId, this.m_skinId);
                    if (heroSkin != null && !string.IsNullOrEmpty(heroSkin.szSoundSwitchEvent))
                    {
                        Singleton <CSoundManager> .instance.PostEvent(heroSkin.szSoundSwitchEvent, this.actor.gameObject);
                    }
                }
            }
            this.SetSkillEffectPath();
            base.EnableRVO(false);
            if (this.actor.HorizonMarker != null && FogOfWar.enable)
            {
                this.actor.HorizonMarker.SightRadius = Horizon.QueryGlobalSight();
            }
        }
Exemple #3
0
 public override int QueryExposeDuration()
 {
     return(Horizon.QueryExposeDurationHero());
 }
 public void FightStart()
 {
     this._fighting = true;
     Horizon.QueryGlobalSight();
     this._enabled = (Singleton<BattleLogic>.instance.GetCurLvelContext().m_horizonEnableMethod == Horizon.EnableMethod.EnableAll);
 }
Exemple #5
0
 protected override int QueryExposeDuration()
 {
     return(Horizon.QueryExposeDurationHero());
 }