public void CopyFrom(daily_mission_info from) { if (from == this) { return; } Clear(); MergeFrom(from); }
public void MergeFrom(daily_mission_info from) { if (from == this) { return; } // missionId SetMissionId(from.GetMissionId()); // dataKey SetDataKey(from.GetDataKey()); // progress SetProgress(from.GetProgress()); // goal SetGoal(from.GetGoal()); // receiveReward SetReceiveReward(from.GetReceiveReward()); // reward SetReward(from.GetReward()); }
public void RemoveInfos(daily_mission_info infos) { int i = 0; for (; i < infos_.Length; ++i) { if (infos_[i] == infos) { break; } } if (i == infos_.Length) { return; } for (; i < infos_.Length - 1; ++i) { infos_[i] = infos_[i + 1]; } Array.Resize(ref infos_, infos_.Length - 1); }
public bool Deserialize(Stream stream) { BinaryReader input = new BinaryReader(stream); // infos uint infosLength = 0; if (Yippee.Net.Internal.Deserialize(input, out infosLength) == false) { return(false); } Array.Resize(ref infos_, (int)infosLength); for (uint i = 0; i < infosLength; ++i) { daily_mission_info newInfos = new daily_mission_info(); if (newInfos.Deserialize(stream) == false) { return(false); } infos_[i] = newInfos; } return(true); }
public void AddInfos(daily_mission_info infos) { Array.Resize(ref infos_, infos_.Length + 1); infos_[infos_.Length - 1] = infos; }
public daily_mission_info(daily_mission_info from) { MergeFrom(from); }