public byte[] GetCaddieData() { PlayerCaddieData CaddieInfo; CaddieInfo = ItemCaddie.GetCaddieByIndex(CaddieIndex); if (!(CaddieInfo == null)) { return(CaddieInfo.GetCaddieInfo()); } return(new byte[0x19]); }
public byte[] Build() { PangyaBinaryWriter Reply; using (Reply = new PangyaBinaryWriter()) { Reply.Write(new byte[] { 0x71, 0x00 }); Reply.WriteUInt16((ushort)Count); Reply.WriteUInt16((ushort)Count); foreach (CaddieData CaddieInfo in this) { Reply.Write(CaddieInfo.GetCaddieInfo()); } return(Reply.GetBytes()); } }
public byte[] GetCaddie() { PangyaBinaryWriter Result; Result = new PangyaBinaryWriter(); try { foreach (CaddieData CaddieInfo in this) { Result.Write(CaddieInfo.GetCaddieInfo()); } return(Result.GetBytes()); } finally { Result.Dispose(); } }