Exemplo n.º 1
0
 /// <summary>
 /// 创建建筑物体
 /// </summary>
 private static void ProduceBulidRoom(int DataID, BuildInfo Info)
 {
     if (Info == null)
     {
         return;
     }
     if (Info.m_RoomType == RoomType.Stair)
     {
         ProduceStairBulid(Info);
     }
     else
     {
         Building mBuild = ProduceRoomBulid(DataID, Info);
         if (mBuild != null)
         {
             List <Int2> lPutRoom = Info.GetPutRoom();
             if (Info.m_RoomType == RoomType.DeckTrap)
             {
                 ShipBombRule.JoinDeckBuildRoom(lPutRoom, mBuild);
             }
             else if (Info.m_RoomType == RoomType.ResRoom)
             {
                 ShipBombRule.JoinGoldBuildRoom(lPutRoom, mBuild);
             }
             else
             {
                 ShipBombRule.JoinBuildRoom(lPutRoom, mBuild);
             }
         }
     }
 }