Exemplo n.º 1
0
 public DoorData(DoorData v)
 {
     this.ID             = v.ID;
     this.centerPos      = v.centerPos;
     this.InAraaMapPos   = v.InAraaMapPos;
     this.InStageMapPos  = v.InStageMapPos;
     this.linkAreaMapID  = v.linkAreaMapID;
     this.linkStageMapID = v.linkStageMapID;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 设置关卡地图door的数据
 /// </summary>
 /// <param name="minDoorPos"></param>
 /// <param name="maxDoorPos"></param>
 /// <param name="isXdir"></param>
 /// <param name="TileSize"></param>
 /// <param name="stageMapIndex"></param>
 public void SetDoorData(Float2 minDoorPos, Float2 maxDoorPos, bool isXdir, float TileSize, int stageMapIndex)
 {
     this.minDoor = new DoorData();
     this.minDoor.Init(minDoorPos, isXdir, TileSize, false);
     this.minDoor.linkStageMapID = stageMapIndex;
     //
     this.maxDoor = new DoorData();
     this.maxDoor.Init(maxDoorPos, isXdir, TileSize, true);
     this.maxDoor.linkStageMapID = stageMapIndex;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 分析连接关系
 /// </summary>
 public void ParseDoorLink()
 {
     for (int i = 0; i < Stages.Count; i++)
     {
         DoorData d1 = Stages[i].minDoor;
         if (d1 != null)
         {
             d1.linkAreaMapID = ParseDoorLink(d1.InAraaMapPos);
         }
         DoorData d2 = Stages[i].maxDoor;
         if (d2 != null)
         {
             d2.linkAreaMapID = ParseDoorLink(d2.InAraaMapPos);
         }
     }
 }