Beispiel #1
0
        public static bool SetObjWithColVisibleByFowAttached(GameObject inObj, GameFowManager fowMgr, COM_PLAYERCAMP inHostCamp, PoolObjHandle <ActorRoot> inAttachActor)
        {
            if (inObj == null)
            {
                return(false);
            }
            if (!inAttachActor || inAttachActor.get_handle().shape == null)
            {
                return(GameFowCollector.SetObjVisibleByFow(inObj, fowMgr, inHostCamp));
            }
            VCollisionShape shape    = inAttachActor.get_handle().shape;
            VInt3           location = inAttachActor.get_handle().location;

            location = new VInt3(location.x, location.z, 0);
            bool flag = fowMgr.IsSurfaceCellVisible(location, inHostCamp);

            if (flag)
            {
                MMGame_Math.SetLayer(inObj, "Actor", "Particles", true);
            }
            else
            {
                flag = shape.AcceptFowVisibilityCheck(inHostCamp, fowMgr);
                if (flag)
                {
                    MMGame_Math.SetLayer(inObj, "Actor", "Particles", true);
                }
                else
                {
                    MMGame_Math.SetLayer(inObj, "Hide", true);
                }
            }
            return(flag);
        }
Beispiel #2
0
        public static bool SetObjVisibleByFowAttached(GameObject obj, GameFowManager fowMgr, COM_PLAYERCAMP inHostCamp, PoolObjHandle <ActorRoot> inAttachActor)
        {
            if (obj == null)
            {
                return(false);
            }
            bool flag;

            if (inAttachActor)
            {
                VInt3 location = inAttachActor.get_handle().location;
                location = new VInt3(location.x, location.z, 0);
                flag     = fowMgr.IsSurfaceCellVisible(location, inHostCamp);
                if (flag)
                {
                    MMGame_Math.SetLayer(obj, "Actor", "Particles", true);
                }
                else
                {
                    MMGame_Math.SetLayer(obj, "Hide", true);
                }
            }
            else
            {
                flag = GameFowCollector.SetObjVisibleByFow(obj, fowMgr, inHostCamp);
            }
            return(flag);
        }
 public void SetBaseDataVisible(VInt2 inPos, COM_PLAYERCAMP camp, bool bVisible)
 {
     if (this.pFowMgr == null)
     {
         return;
     }
     GameFowManager.SetBaseDataVisible(true, inPos.x, inPos.y, camp, camp == this.pFowMgr.m_hostPlayerCamp);
 }
 public void SetVisible(VInt2 inPos, COM_PLAYERCAMP camp, bool bVisible)
 {
     if (this.pFowMgr == null)
     {
         return;
     }
     GameFowManager.SetVisible(true, inPos.x, inPos.y, camp);
 }
 public void SwitchObserveCamp(COM_PLAYERCAMP inObserveCamp)
 {
     if (this.IsWatching)
     {
         this.observeCamp_ = inObserveCamp;
         if (FogOfWar.enable)
         {
             GameFowManager.ResetHostCamp(inObserveCamp);
             Singleton <GameFowManager> .instance.ResetBaseMapData(true);
         }
     }
 }
Beispiel #6
0
        public static bool SetObjVisibleByFow(GameObject obj, GameFowManager fowMgr, COM_PLAYERCAMP inHostCamp)
        {
            if (obj == null)
            {
                return(false);
            }
            VInt3 worldLoc = (VInt3)obj.transform.position;

            worldLoc = new VInt3(worldLoc.x, worldLoc.z, 0);
            bool flag = fowMgr.IsSurfaceCellVisible(worldLoc, inHostCamp);

            if (flag)
            {
                MMGame_Math.SetLayer(obj, "Actor", "Particles", true);
            }
            else
            {
                MMGame_Math.SetLayer(obj, "Hide", true);
            }
            return(flag);
        }
        public void Init()
        {
            this.pFowMgr = Singleton <GameFowManager> .get_instance();

            this.maxAlpha = 255;
        }
        public static bool VisitFowVisibilityCheck(VCollisionCylinderSector cylinder, PoolObjHandle <ActorRoot> inActor, COM_PLAYERCAMP inHostCamp, GameFowManager fowMgr)
        {
            VInt2 zero = VInt2.zero;

            fowMgr.WorldPosToGrid(new VInt3(cylinder.WorldPos.x, cylinder.WorldPos.z, 0), out zero.x, out zero.y);
            float num = (float)cylinder.Radius;

            num *= 0.001f;
            num *= num;
            Vector3 vector = (Vector3)cylinder.WorldPos;
            float   num2   = (float)cylinder.Degree;

            num2 *= 0.5f;
            num2  = Mathf.Cos(num2);
            Vector3  vector2   = (Vector3)cylinder.WorldPos;
            Vector3  vector3   = (Vector3)inActor.handle.forward;
            FieldObj pFieldObj = fowMgr.m_pFieldObj;
            int      num3      = 0;

            pFieldObj.UnrealToGridX(cylinder.Radius, out num3);
            int num4 = zero.x - num3;

            num4 = Math.Max(0, num4);
            int num5 = zero.x + num3;

            num5 = Math.Min(num5, pFieldObj.NumX - 1);
            int num6 = zero.y - num3;

            num6 = Math.Max(0, num6);
            int num7 = zero.y + num3;

            num7 = Math.Min(num7, pFieldObj.NumY - 1);
            for (int i = num4; i <= num5; i++)
            {
                for (int j = num6; j <= num7; j++)
                {
                    bool flag = Singleton <GameFowManager> .instance.IsVisible(i, j, inHostCamp);

                    if (flag && GameFowCollector.IsPointInCircularSector2(vector.x, vector.z, vector3.x, vector3.z, num, num2, vector2.x, vector2.z))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
        public static bool VisitFowVisibilityCheck(VCollisionSphere sphere, PoolObjHandle <ActorRoot> inActor, COM_PLAYERCAMP inHostCamp, GameFowManager fowMgr)
        {
            VInt2 zero = VInt2.zero;

            fowMgr.WorldPosToGrid(new VInt3(sphere.WorldPos.x, sphere.WorldPos.z, 0), out zero.x, out zero.y);
            int num = 0;

            fowMgr.m_pFieldObj.UnrealToGridX(sphere.WorldRadius, out num);
            for (int i = -num; i <= num; i++)
            {
                for (int j = -num; j <= num; j++)
                {
                    VInt2 b    = new VInt2(i, j);
                    VInt2 vInt = zero + b;
                    if (fowMgr.IsInsideSurface(vInt.x, vInt.y) && b.sqrMagnitude <= num * num)
                    {
                        bool flag = Singleton <GameFowManager> .instance.IsVisible(vInt.x, vInt.y, inHostCamp);

                        if (flag)
                        {
                            return(true);
                        }
                    }
                }
            }
            return(false);
        }
        public static bool VisitFowVisibilityCheck(VCollisionBox box, PoolObjHandle <ActorRoot> inActor, COM_PLAYERCAMP inHostCamp, GameFowManager fowMgr)
        {
            VInt2 zero = VInt2.zero;

            fowMgr.WorldPosToGrid(new VInt3(box.WorldPos.x, box.WorldPos.z, 0), out zero.x, out zero.y);
            FieldObj pFieldObj = fowMgr.m_pFieldObj;
            int      num       = 0;
            int      num2;

            pFieldObj.UnrealToGridX(box.WorldExtends.x, out num2);
            pFieldObj.UnrealToGridX(box.WorldExtends.z, out num);
            int num3 = zero.x - num2;

            num3 = Math.Max(0, num3);
            int num4 = zero.x + num2;

            num4 = Math.Min(num4, pFieldObj.NumX - 1);
            int num5 = zero.y - num;

            num5 = Math.Max(0, num5);
            int num6 = zero.y + num;

            num6 = Math.Min(num6, pFieldObj.NumY - 1);
            for (int i = num3; i <= num4; i++)
            {
                for (int j = num5; j <= num6; j++)
                {
                    bool flag = Singleton <GameFowManager> .instance.IsVisible(i, j, inHostCamp);

                    if (flag)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
        public static bool SetObjWithColVisibleByFow(PoolObjHandle <ActorRoot> inActor, GameFowManager fowMgr, COM_PLAYERCAMP inHostCamp)
        {
            if (!inActor)
            {
                return(false);
            }
            ActorRoot       handle = inActor.handle;
            VCollisionShape shape  = handle.shape;

            if (shape == null)
            {
                return(GameFowCollector.SetObjVisibleByFow(inActor, handle.gameObject, fowMgr, inHostCamp));
            }
            VInt3 location = handle.location;

            location = new VInt3(location.x, location.z, 0);
            bool flag = fowMgr.IsVisible(location, inHostCamp);

            if (flag)
            {
                handle.Visible = true;
            }
            else
            {
                flag           = shape.AcceptFowVisibilityCheck(inHostCamp, fowMgr);
                handle.Visible = flag;
            }
            return(flag);
        }
        public static bool SetObjVisibleByFow(PoolObjHandle <ActorRoot> ar, GameObject obj, GameFowManager fowMgr, COM_PLAYERCAMP inHostCamp)
        {
            if (!ar && null == obj)
            {
                return(false);
            }
            VInt3 worldLoc = VInt3.zero;
            bool  flag     = false;

            if (ar)
            {
                worldLoc          = new VInt3(ar.handle.location.x, ar.handle.location.z, 0);
                flag              = fowMgr.IsVisible(worldLoc, inHostCamp);
                ar.handle.Visible = flag;
            }
            else if (obj != null)
            {
                worldLoc = (VInt3)obj.transform.position;
                worldLoc = new VInt3(worldLoc.x, worldLoc.z, 0);
                flag     = fowMgr.IsVisible(worldLoc, inHostCamp);
                if (flag)
                {
                    obj.SetLayer("Actor", "Particles", true);
                }
                else
                {
                    obj.SetLayer("Hide", true);
                }
            }
            return(flag);
        }
        public void UpdateFowVisibility(bool bForce)
        {
            GameObjMgr     instance    = Singleton <GameObjMgr> .instance;
            GameFowManager instance2   = Singleton <GameFowManager> .instance;
            COM_PLAYERCAMP horizonCamp = Singleton <WatchController> .instance.HorizonCamp;
            uint           num         = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameInterval;
            uint           num2        = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalBullet(true);
            uint           num3        = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalBullet(false);
            uint           num4        = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalHero;
            List <PoolObjHandle <ActorRoot> > gameActors = instance.GameActors;
            int count = gameActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                if (gameActors.get_Item(i))
                {
                    ActorRoot    handle    = gameActors.get_Item(i).handle;
                    ActorTypeDef actorType = handle.TheActorMeta.ActorType;
                    if (actorType == ActorTypeDef.Actor_Type_Hero)
                    {
                        if (handle.ObjID % instance2.InterpolateFrameIntervalHero != num4 && !bForce)
                        {
                            goto IL_219;
                        }
                    }
                    else
                    {
                        if (handle.ObjID % instance2.InterpolateFrameInterval != num && !bForce)
                        {
                            goto IL_219;
                        }
                        if (handle.ActorControl.IsDeadState && !handle.TheStaticData.TheBaseAttribute.DeadControl)
                        {
                            goto IL_219;
                        }
                    }
                    if (actorType != ActorTypeDef.Actor_Type_Organ)
                    {
                        VInt3 worldLoc = new VInt3(handle.location.x, handle.location.z, 0);
                        if (actorType == ActorTypeDef.Actor_Type_Hero || actorType == ActorTypeDef.Actor_Type_Monster)
                        {
                            bool flag = instance2.QueryAttr(handle.location) == FieldObj.EViewBlockType.Grass;
                            handle.HorizonMarker.SetTranslucentMark(HorizonConfig.HideMark.Jungle, flag, false);
                            if (handle.HudControl != null && handle.HudControl.HasStatus(StatusHudType.InJungle) != flag)
                            {
                                if (flag)
                                {
                                    handle.HudControl.ShowStatus(StatusHudType.InJungle);
                                }
                                else
                                {
                                    handle.HudControl.HideStatus(StatusHudType.InJungle);
                                }
                            }
                        }
                        for (int j = 1; j < 3; j++)
                        {
                            COM_PLAYERCAMP cOM_PLAYERCAMP = (COM_PLAYERCAMP)j;
                            if (cOM_PLAYERCAMP != handle.TheActorMeta.ActorCamp)
                            {
                                handle.HorizonMarker.SetHideMark(cOM_PLAYERCAMP, HorizonConfig.HideMark.Jungle, !instance2.IsSurfaceCellVisibleConsiderNeighbor(worldLoc, cOM_PLAYERCAMP));
                            }
                        }
                    }
                }
                IL_219 :;
            }
            Dictionary <int, ShenFuObjects> .Enumerator enumerator = Singleton <ShenFuSystem> .instance._shenFuTriggerPool.GetEnumerator();

            while (enumerator.MoveNext())
            {
                KeyValuePair <int, ShenFuObjects> current = enumerator.get_Current();
                int key = current.get_Key();
                if ((long)key % (long)((ulong)instance2.InterpolateFrameInterval) == (long)((ulong)num))
                {
                    KeyValuePair <int, ShenFuObjects> current2 = enumerator.get_Current();
                    GameObject shenFu = current2.get_Value().ShenFu;
                    GameFowCollector.SetObjVisibleByFow(new PoolObjHandle <ActorRoot>(null), shenFu, instance2, horizonCamp);
                }
            }
            for (int k = 0; k < 3; k++)
            {
                if (Singleton <WatchController> .instance.IsWatching || k != (int)horizonCamp)
                {
                    List <PoolObjHandle <ActorRoot> > campBullet = instance.GetCampBullet((COM_PLAYERCAMP)k);
                    int count2 = campBullet.get_Count();
                    for (int l = 0; l < count2; l++)
                    {
                        PoolObjHandle <ActorRoot> poolObjHandle = campBullet.get_Item(l);
                        if (poolObjHandle)
                        {
                            ActorRoot     handle2       = poolObjHandle.handle;
                            BulletWrapper bulletWrapper = handle2.ActorControl as BulletWrapper;
                            if (bulletWrapper.m_bVisibleByFow)
                            {
                                bool flag2;
                                if (bulletWrapper.GetMoveDelta() > 0)
                                {
                                    flag2 = (handle2.ObjID % instance2.InterpolateFrameIntervalBullet(true) != num2);
                                }
                                else
                                {
                                    flag2 = (handle2.ObjID % instance2.InterpolateFrameIntervalBullet(false) != num3);
                                }
                                if (!flag2)
                                {
                                    if (Singleton <WatchController> .instance.IsWatching && Singleton <WatchController> .instance.CoversCamp(bulletWrapper.actor.TheActorMeta.ActorCamp))
                                    {
                                        bulletWrapper.UpdateSubParObjVisibility(true);
                                    }
                                    else if (bulletWrapper.m_bVisibleByShape)
                                    {
                                        bulletWrapper.UpdateSubParObjVisibility(GameFowCollector.SetObjWithColVisibleByFow(poolObjHandle, instance2, horizonCamp));
                                    }
                                    else
                                    {
                                        bulletWrapper.UpdateSubParObjVisibility(GameFowCollector.SetObjVisibleByFow(poolObjHandle, handle2.gameObject, instance2, horizonCamp));
                                    }
                                }
                            }
                        }
                    }
                }
            }
            int count3 = this.VirtualParentParticles_.get_Count();

            for (int m = 0; m < count3; m++)
            {
                GameFowCollector.VirtualParticleAttachContext virtualParticleAttachContext = this.VirtualParentParticles_.get_Item(m);
                GameObject virtualParticle = this.VirtualParentParticles_.get_Item(m).VirtualParticle;
                if (!(virtualParticle == null) && this.VirtualParentParticles_.get_Item(m).AttachActor)
                {
                    if (this.VirtualParentParticles_.get_Item(m).AttachActor.handle.Visible)
                    {
                        virtualParticle.SetLayer("Actor", "Particles", true);
                    }
                    else
                    {
                        virtualParticle.SetLayer("Hide", true);
                    }
                }
            }
        }
        public void CollectExplorer(bool bForce)
        {
            GameObjMgr     instance  = Singleton <GameObjMgr> .instance;
            GameFowManager instance2 = Singleton <GameFowManager> .instance;
            uint           num       = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameInterval;
            uint           num2      = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalBullet(true);
            uint           num3      = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalBullet(false);
            uint           num4      = Singleton <FrameSynchr> .instance.CurFrameNum % instance2.InterpolateFrameIntervalHero;

            this.ClearExplorerPosList();
            int count = instance.GameActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                PoolObjHandle <ActorRoot> ptr = instance.GameActors.get_Item(i);
                if (ptr)
                {
                    ActorRoot    handle    = ptr.handle;
                    ActorTypeDef actorType = handle.TheActorMeta.ActorType;
                    if (actorType == ActorTypeDef.Actor_Type_Hero)
                    {
                        if (handle.ObjID % instance2.InterpolateFrameIntervalHero != num4 && !bForce)
                        {
                            goto IL_191;
                        }
                    }
                    else if (handle.ObjID % instance2.InterpolateFrameInterval != num && !bForce)
                    {
                        goto IL_191;
                    }
                    if (actorType != ActorTypeDef.Actor_Type_Organ && (!handle.ActorControl.IsDeadState || handle.TheStaticData.TheBaseAttribute.DeadControl))
                    {
                        VInt3 vInt = new VInt3(handle.location.x, handle.location.z, 0);
                        if (handle.HorizonMarker != null)
                        {
                            int[]      exposedCamps = handle.HorizonMarker.GetExposedCamps();
                            ACTOR_INFO aCTOR_INFO   = ClassObjPool <ACTOR_INFO> .Get();

                            aCTOR_INFO.camps    = exposedCamps;
                            aCTOR_INFO.location = handle.HorizonMarker.GetExposedPos();
                            this.m_explorerPosList.Add(aCTOR_INFO);
                        }
                    }
                }
                IL_191 :;
            }
            this.ClearExplorerBulletList();
            for (int j = 1; j < 3; j++)
            {
                List <PoolObjHandle <ActorRoot> > campBullet = Singleton <GameObjMgr> .instance.GetCampBullet((COM_PLAYERCAMP)j);

                int count2 = campBullet.get_Count();
                for (int k = 0; k < count2; k++)
                {
                    PoolObjHandle <ActorRoot> ptr2 = campBullet.get_Item(k);
                    if (ptr2)
                    {
                        ActorRoot     handle2       = ptr2.handle;
                        BulletWrapper bulletWrapper = handle2.ActorControl as BulletWrapper;
                        if (0 < bulletWrapper.SightRadius)
                        {
                            if (!bForce)
                            {
                                if (bulletWrapper.GetMoveDelta() > 0)
                                {
                                    if (handle2.ObjID % instance2.InterpolateFrameIntervalBullet(true) != num2)
                                    {
                                        goto IL_2AD;
                                    }
                                }
                                else if (handle2.ObjID % instance2.InterpolateFrameIntervalBullet(false) != num3)
                                {
                                    goto IL_2AD;
                                }
                            }
                            VInt3       location    = new VInt3(handle2.location.x, handle2.location.z, 0);
                            BULLET_INFO bULLET_INFO = ClassObjPool <BULLET_INFO> .Get();

                            bULLET_INFO.radius   = bulletWrapper.SightRange;
                            bULLET_INFO.location = location;
                            this.m_explorerBulletList[j - 1].Add(bULLET_INFO);
                        }
                    }
                    IL_2AD :;
                }
            }
        }
Beispiel #15
0
        public void UpdateFowVisibility(bool bForce)
        {
            GameObjMgr instance = Singleton <GameObjMgr> .get_instance();

            GameFowManager instance2 = Singleton <GameFowManager> .get_instance();

            Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer();

            COM_PLAYERCAMP playerCamp = hostPlayer.PlayerCamp;
            uint           num        = Singleton <FrameSynchr> .get_instance().CurFrameNum % instance2.InterpolateFrameInterval;

            uint num2 = Singleton <FrameSynchr> .get_instance().CurFrameNum % instance2.InterpolateFrameIntervalBullet;

            uint num3 = Singleton <FrameSynchr> .get_instance().CurFrameNum % instance2.InterpolateFrameIntervalHero;

            List <PoolObjHandle <ActorRoot> > gameActors = instance.GameActors;
            int count = gameActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                if (gameActors.get_Item(i))
                {
                    ActorRoot    handle    = gameActors.get_Item(i).get_handle();
                    ActorTypeDef actorType = handle.TheActorMeta.ActorType;
                    if (actorType == ActorTypeDef.Actor_Type_Hero)
                    {
                        if (handle.ObjID % instance2.InterpolateFrameIntervalHero != num3 && !bForce)
                        {
                            goto IL_212;
                        }
                    }
                    else if (handle.ObjID % instance2.InterpolateFrameInterval != num && !bForce)
                    {
                        goto IL_212;
                    }
                    if (actorType != ActorTypeDef.Actor_Type_Organ && (!handle.ActorControl.IsDeadState || handle.TheStaticData.TheBaseAttribute.DeadControl))
                    {
                        VInt3 worldLoc = new VInt3(handle.location.x, handle.location.z, 0);
                        if (actorType == ActorTypeDef.Actor_Type_Hero || actorType == ActorTypeDef.Actor_Type_Monster)
                        {
                            bool flag = instance2.QueryAttr(handle.location) == FieldObj.EViewBlockType.Grass;
                            handle.HorizonMarker.SetTranslucentMark(HorizonConfig.HideMark.Jungle, flag, false);
                            if (handle.HudControl != null && handle.HudControl.HasStatus(StatusHudType.InJungle) != flag)
                            {
                                if (flag)
                                {
                                    handle.HudControl.ShowStatus(StatusHudType.InJungle);
                                }
                                else
                                {
                                    handle.HudControl.HideStatus(StatusHudType.InJungle);
                                }
                            }
                        }
                        for (int j = 1; j < 3; j++)
                        {
                            COM_PLAYERCAMP cOM_PLAYERCAMP = j;
                            if (cOM_PLAYERCAMP != handle.TheActorMeta.ActorCamp)
                            {
                                handle.HorizonMarker.SetHideMark(cOM_PLAYERCAMP, HorizonConfig.HideMark.Jungle, !instance2.IsSurfaceCellVisibleConsiderNeighbor(worldLoc, cOM_PLAYERCAMP));
                            }
                        }
                    }
                }
                IL_212 :;
            }
            Dictionary <int, ShenFuObjects> .Enumerator enumerator = Singleton <ShenFuSystem> .get_instance()._shenFuTriggerPool.GetEnumerator();

            while (enumerator.MoveNext())
            {
                KeyValuePair <int, ShenFuObjects> current = enumerator.get_Current();
                int key = current.get_Key();
                if ((long)key % (long)((ulong)instance2.InterpolateFrameInterval) == (long)((ulong)num))
                {
                    KeyValuePair <int, ShenFuObjects> current2 = enumerator.get_Current();
                    GameObject shenFu = current2.get_Value().ShenFu;
                    GameFowCollector.SetObjVisibleByFow(shenFu, instance2, playerCamp);
                }
            }
            for (int k = 0; k < 3; k++)
            {
                if (k != playerCamp)
                {
                    List <PoolObjHandle <ActorRoot> > campBullet = instance.GetCampBullet(k);
                    int count2 = campBullet.get_Count();
                    for (int l = 0; l < count2; l++)
                    {
                        PoolObjHandle <ActorRoot> poolObjHandle = campBullet.get_Item(l);
                        if (poolObjHandle)
                        {
                            ActorRoot     handle2       = poolObjHandle.get_handle();
                            BulletWrapper bulletWrapper = handle2.ActorControl as BulletWrapper;
                            if (bulletWrapper.m_bVisibleByFow)
                            {
                                if (handle2.ObjID % instance2.InterpolateFrameIntervalBullet == num2)
                                {
                                    if (bulletWrapper.m_bVisibleByShape)
                                    {
                                        bulletWrapper.UpdateSubParObjVisibility(GameFowCollector.SetObjWithColVisibleByFow(poolObjHandle, instance2, playerCamp));
                                    }
                                    else
                                    {
                                        bulletWrapper.UpdateSubParObjVisibility(GameFowCollector.SetObjVisibleByFow(handle2.gameObject, instance2, playerCamp));
                                    }
                                }
                            }
                        }
                    }
                }
            }
            int count3 = this.VirtualParentParticles_.get_Count();

            for (int m = 0; m < count3; m++)
            {
                GameFowCollector.VirtualParticleAttachContext virtualParticleAttachContext = this.VirtualParentParticles_.get_Item(m);
                GameObject virtualParticle = this.VirtualParentParticles_.get_Item(m).VirtualParticle;
                if (!(virtualParticle == null))
                {
                    int num4 = virtualParticle.GetInstanceID();
                    if (num4 < 0)
                    {
                        num4 = -num4;
                    }
                    if ((long)num4 % (long)((ulong)instance2.InterpolateFrameIntervalBullet) == (long)((ulong)num))
                    {
                        if (virtualParticleAttachContext.bUseShape)
                        {
                            GameFowCollector.SetObjWithColVisibleByFowAttached(virtualParticle, instance2, playerCamp, this.VirtualParentParticles_.get_Item(m).AttachActor);
                        }
                        else
                        {
                            GameFowCollector.SetObjVisibleByFowAttached(virtualParticle, instance2, playerCamp, this.VirtualParentParticles_.get_Item(m).AttachActor);
                        }
                    }
                }
            }
        }