public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new RequiredMessageHeader();
     Field0.Parse(buffer);
     PlayerIndex = buffer.ReadInt(3);
     ToonId = new EntityId();
     ToonId.Parse(buffer);
     GameAccountId = new EntityId();
     GameAccountId.Parse(buffer);
     ToonName = buffer.ReadCharArray(49);
     Field5 = buffer.ReadInt(5) + (-1);
     Field6 = buffer.ReadInt(3) + (-1);
     snoActorPortrait = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(7);
     StateData = new HeroStateData();
     StateData.Parse(buffer);
     Field10 = buffer.ReadBool();
     Field11 = buffer.ReadInt(32);
     ActorID = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new RequiredMessageHeader();
     Field0.Parse(buffer);
     State = new HeroStateData();
     State.Parse(buffer);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     _PlayerIndex = stream.ReadValueS32();
     stream.Position = offset + 16;
     ToonId = new EntityId();
     ToonId.FileRead(stream, stream.Position);
     stream.Position = offset + 32;
     GameAccountId = new EntityId();
     GameAccountId.FileRead(stream, stream.Position);
     stream.Position = offset + 48;
     ToonName = stream.ReadString(49);
     stream.Position = offset + 100;
     _Field5 = stream.ReadValueS32();
     stream.Position = offset + 104;
     _Field6 = stream.ReadValueS32();
     stream.Position = offset + 108;
     snoActorPortrait = stream.ReadValueS32();
     stream.Position = offset + 112;
     _Field8 = stream.ReadValueS32();
     stream.Position = offset + 116;
     StateData = new HeroStateData();
     StateData.FileRead(stream, stream.Position);
     stream.Position = offset + 17168;
     Field10 = stream.ReadValueS32() == 1;
     stream.Position = offset + 17172;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 17176;
     ActorID = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     State = new HeroStateData();
     State.FileRead(stream, stream.Position);
 }