/// <summary> /// 获取地形房间及其内部陷阱 /// </summary> /// <author>zhulin</author> public BuildInfo GetBuildInfo() { BuildInfo bInfo = null; if (type == (int)ShipBuildType.BuildRoom) { bInfo = BuildDC.GetBuilding(objid); } else if (type == (int)ShipBuildType.BuildStair) { bInfo = buildingM.GetStartBuildInfo(objid); } if (bInfo != null) { bInfo.ID = objid; bInfo.m_cx = cxMapGrid; bInfo.m_cy = cyMapGrid; bInfo.m_ShipPutdata0 = shipput_data0; bInfo.m_ShipPutdata1 = shipput_data1; if (bInfo.m_RoomType == RoomType.DeckTrap) { m_DeckRoom = true; } else { m_DeckRoom = false; } } return(bInfo); }
private void UpDateBuildInfo() { m_Info = BuildDC.GetBuilding(m_Info.ID); }