コード例 #1
0
ファイル: PlayerSavedData.cs プロジェクト: kiwi0530/mooege
 public void Parse(GameBitBuffer buffer)
 {
     HotBarButtons = new HotbarButtonData[6];
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i] = new HotbarButtonData();
         HotBarButtons[i].Parse(buffer);
     }
     HotBarButton = new HotbarButtonData();
     HotBarButton.Parse(buffer);
     PlaytimeTotal = buffer.ReadInt(32);
     WaypointFlags = buffer.ReadInt(32);
     Field4 = new HirelingSavedData();
     Field4.Parse(buffer);
     Field5 = buffer.ReadInt(32);
     LearnedLore = new LearnedLore();
     LearnedLore.Parse(buffer);
     ActiveSkills = new ActiveSkillSavedData[6];
     for (int i = 0; i < ActiveSkills.Length; i++)
     {
         ActiveSkills[i] = new ActiveSkillSavedData();
         ActiveSkills[i].Parse(buffer);
     }
     snoTraits = new int /* sno */[3];
     for (int i = 0; i < snoTraits.Length; i++) snoTraits[i] = buffer.ReadInt(32);
     SavePointData = new SavePointData();
     SavePointData.Parse(buffer);
 }
コード例 #2
0
ファイル: PlayerSavedData.cs プロジェクト: cduran/mooege
 public void Parse(GameBitBuffer buffer)
 {
     HotBarButtons = new HotbarButtonData[6];
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i] = new HotbarButtonData();
         HotBarButtons[i].Parse(buffer);
     }
     HotBarButton = new HotbarButtonData();
     HotBarButton.Parse(buffer);
     PlaytimeTotal = buffer.ReadInt(32);
     WaypointFlags = buffer.ReadInt(32);
     Field4        = new HirelingSavedData();
     Field4.Parse(buffer);
     Field5      = buffer.ReadInt(32);
     LearnedLore = new LearnedLore();
     LearnedLore.Parse(buffer);
     ActiveSkills = new ActiveSkillSavedData[6];
     for (int i = 0; i < ActiveSkills.Length; i++)
     {
         ActiveSkills[i] = new ActiveSkillSavedData();
         ActiveSkills[i].Parse(buffer);
     }
     snoTraits = new int /* sno */[3];
     for (int i = 0; i < snoTraits.Length; i++)
     {
         snoTraits[i] = buffer.ReadInt(32);
     }
     SavePointData = new SavePointData();
     SavePointData.Parse(buffer);
 }