Ejemplo n.º 1
0
 public void Recyle_Imp(uint objid)
 {
     MiniMapTrack_3DUI.InnerData objIDUsedInnerData = this.GetObjIDUsedInnerData(objid);
     if (objIDUsedInnerData != null)
     {
         objIDUsedInnerData.Recyle();
     }
 }
Ejemplo n.º 2
0
 public MiniMapTrack_3DUI.InnerData Prepare_Imp(PoolObjHandle <ActorRoot> actorHandle, string iconPath)
 {
     MiniMapTrack_3DUI.InnerData innerData = this.GetCachedNoUsedInnerData();
     if (innerData == null)
     {
         innerData = new MiniMapTrack_3DUI.InnerData();
         this.m_innerDatas.Add(innerData);
     }
     innerData.SetData(actorHandle.handle.ObjID, iconPath, actorHandle.handle.IsHostCamp());
     return(innerData);
 }
Ejemplo n.º 3
0
 public void Clear()
 {
     for (int i = 0; i < this.m_innerDatas.Count; i++)
     {
         MiniMapTrack_3DUI.InnerData innerData = this.m_innerDatas[i];
         if (innerData != null)
         {
             innerData.Recyle();
         }
     }
 }
Ejemplo n.º 4
0
 private MiniMapTrack_3DUI.InnerData GetCachedNoUsedInnerData()
 {
     for (int i = 0; i < this.m_innerDatas.Count; i++)
     {
         MiniMapTrack_3DUI.InnerData innerData = this.m_innerDatas[i];
         if (innerData != null && innerData.objID == 0u && innerData.small_track == null && innerData.big_track == null)
         {
             return(innerData);
         }
     }
     return(null);
 }
Ejemplo n.º 5
0
 private MiniMapTrack_3DUI.InnerData GetObjIDUsedInnerData(uint objID)
 {
     for (int i = 0; i < this.m_innerDatas.Count; i++)
     {
         MiniMapTrack_3DUI.InnerData innerData = this.m_innerDatas[i];
         if (innerData != null && innerData.objID == objID)
         {
             return(innerData);
         }
     }
     return(null);
 }
Ejemplo n.º 6
0
 public void SetTrackPosition_Imp(PoolObjHandle <ActorRoot> actorHandle, string iconPath)
 {
     if (!actorHandle)
     {
         return;
     }
     MiniMapTrack_3DUI.InnerData innerData = this.GetObjIDUsedInnerData(actorHandle.handle.ObjID);
     if (innerData == null)
     {
         innerData = this.Prepare_Imp(actorHandle, iconPath);
     }
     if (innerData != null)
     {
         innerData.UpdateTransform(actorHandle);
     }
     else
     {
         DebugHelper.Assert(false, "--- SetTrackPosition_Imp InnerData is null, check it....");
     }
 }