public HeadVo(ElementPB pb) { Id = pb.Id; ElementType = pb.ElementType; ElementModule = pb.ElementModule; Name = pb.Name; NeedUnlock = pb.NeedUnlock; UnlockClaim = pb.UnlockClaim; _userCardVo = GlobalData.CardModel.GetUserCardById(UnlockClaim.CardId); Desc = pb.Desc; SetPlayerTypeAndPath(pb.UnlockClaim.CardId, pb.Id); SetIsUnlock(); }
public HeadFrameVo(ElementPB pb) { Id = pb.Id; ElementType = pb.ElementType; ElementModule = pb.ElementModule; Name = pb.Name; UnlockClaim = pb.UnlockClaim; Desc = pb.Desc; SetIsUnlock(); Path = "HeadFrame/" + pb.Id; Key = GlobalData.PlayerModel.PlayerVo.UserId + Id + ""; SetRedDot(); if (!IsUnlock) { Sort = 1; } }