Esempio n. 1
0
 /// <summary>
 /// 获取建筑数据
 /// </summary>
 /// <param name="item">战役副本摆设</param>
 /// <returns>建筑数据,null 获取失败</returns>
 public static void  UpdateBuildInfo(build.BuildInfo Info, ref BuildInfo buildInfo)
 {
     if (Info == null || buildInfo == null)
     {
         return;
     }
     buildInfo.BuildType = Info.buildtype;
     buildInfo.Level     = Info.level;
     buildInfo.Quality   = Info.quality;
     buildInfo.StarLevel = Info.starlevel;
     UpdateBuildInfo(ref buildInfo);
 }
Esempio n. 2
0
    /// <summary>
    /// 获取建筑数据
    /// </summary>
    /// <param name="item">战役副本摆设</param>
    /// <returns>建筑数据,null 获取失败</returns>
    public static BuildInfo  GetBuildInfo(build.BuildInfo Info)
    {
        if (Info == null)
        {
            return(null);
        }

        BuildInfo b = GetBuildInfo(Info.buildtype, Info.level, Info.quality, Info.starlevel);

        if (b != null)
        {
            b.ID             = Info.id;
            b.m_cx           = 0;
            b.m_cy           = 0;
            b.m_ShipPutdata0 = 0;
            b.m_ShipPutdata1 = 0;
        }
        return(b);
    }