/// <summary> /// 设置防守方玩家信息 /// </summary> private static void SetDefenseUserInfo(battle.DefInfoResponse defInfo) { m_DefenderUserInfo.Name = defInfo.user_info.name; m_DefenderUserInfo.Level = defInfo.user_info.level; m_DefenderUserInfo.Coin = defInfo.resource_info.coin; m_DefenderUserInfo.Wood = defInfo.resource_info.wood; }
public static void SetDefenseData(battle.DefInfoResponse defInfo) { SetDefenseMap(defInfo); SetDefenseSoldier(defInfo.soldier_info); SetDefenseBuild(defInfo.shipput_info); SetDefenseFloor(defInfo); SetDefenseUserInfo(defInfo); }
public ShipCanvasInfo(battle.DefInfoResponse info) { map = info.map; shape = info.shape; width = info.width; height = info.height; shift_cx = 0; shift_cy = 0; }
/// <summary> /// 设置防守方地图数据 /// </summary> private static void SetDefenseMap(battle.DefInfoResponse defInfo) { m_CanvansInfo.EmptyMapArea(); if (defInfo == null) { return; } m_CanvansInfo.SetMapData(defInfo.width, defInfo.height, defInfo.map, defInfo.shape); }
public ReportDetail(treasure.TreasureBattleReportDetailResponse.ReportDetail info) { battleindex = info.battleindex; report_id = info.report_id; definfo = info.definfo; defstatus = info.defstatus; robinfo = info.robinfo; level = info.level; name = info.name; servername = info.servername; win = info.win; power = info.power; }
public void SetInfo(treasure.TreasureSearchInfo info) { pirate_id = info.pirate_id; definfo = info.definfo; surplus_coin = info.surplus_coin; surplus_diamond = info.surplus_diamond; def_status = info.def_status; endtime = info.end_time; rob_count = info.rob_count; self_status = info.self_status; power = info.power; origialNum = info.origin; avenge = info.avenge; }
/// <summary> /// 设置防守方甲板数据 /// </summary> private static void SetDefenseFloor(battle.DefInfoResponse defInfo) { m_Floor = DeckM.GetFloorInfo(defInfo.deck_level); }