Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // parse all slots
- xmlItem = xmlItem.first_child();
- while(!xmlItem.empty())
- {
- wiCharDataFull& w = ProfileData.ArmorySlots[ProfileData.NumSlots++];
- wiStats& st = w.Stats;
- if(ProfileData.NumSlots > wiUserProfile::MAX_LOADOUT_SLOTS)
- r3dError("more that 6 profiles!");
- w.LoadoutID = xmlItem.attribute("CharID").as_uint();
- r3dscpy(w.Gamertag, xmlItem.attribute("Gamertag").value());
- w.Alive = xmlItem.attribute("Alive").as_int();
- w.Hardcore = xmlItem.attribute("Hardcore").as_int();
- st.XP = xmlItem.attribute("XP").as_int();
- st.TimePlayed = xmlItem.attribute("TimePlayed").as_int();
- w.Health = xmlItem.attribute("Health").as_float();
- w.Hunger = xmlItem.attribute("Hunger").as_float();
- w.Thirst = xmlItem.attribute("Thirst").as_float();
- w.Toxic = xmlItem.attribute("Toxic").as_float();
- st.Reputation = xmlItem.attribute("Reputation").as_int();
- w.DeathUtcTime= xmlItem.attribute("DeathTime").as_int64();
- w.SecToRevive = xmlItem.attribute("SecToRevive").as_int();
- w.GameMapId = xmlItem.attribute("GameMapId").as_int();
- w.GameServerId= xmlItem.attribute("GameServerId").as_int();
- w.GamePos = r3dPoint3D(0, 0, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement