public FishDataInfo(FishDataInfo a_Copy) { m_FishKind = a_Copy.m_FishKind; m_FishRank = a_Copy.m_FishRank; m_FishSex = a_Copy.m_FishSex; m_FishRankID = a_Copy.m_FishRankID; m_Shape = a_Copy.m_Shape; m_Color = a_Copy.m_Color; m_Identifier = a_Copy.m_Identifier; m_FishID = a_Copy.m_FishID; m_lLevelInfo = new List <FishLevelInfo>(a_Copy.m_lLevelInfo); }
public FishInfo(FishDataInfo dataFishInfo) { m_FishRankID = dataFishInfo.m_FishRankID; //m_TopicID = dataFishInfo.m_TopicID; m_Identifier = dataFishInfo.m_Identifier; m_FishID = dataFishInfo.m_FishID; m_FishRank = dataFishInfo.m_FishRank; m_FishKind = dataFishInfo.m_FishKind; m_FishSex = dataFishInfo.m_FishSex; m_FishShape = new FishShape(dataFishInfo.m_Shape, dataFishInfo.m_Color); m_lFishStates = dataFishInfo.m_lFishStates; // default get level of baby fish if (dataFishInfo.m_lLevelInfo.Count >= 0) { FishLevelInfo babyInfo = dataFishInfo.m_lLevelInfo[0]; UpdateFishLevelInfo(babyInfo); } }