public PlayerShip(byte[] byteArray, int startIndex) { if (byteArray != null) { if (_log.IsInfoEnabled) { _log.InfoFormat("{0}--bytes in: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(byteArray)); } Unknown0 = BitConverter.ToInt32(byteArray, startIndex); if (_log.IsInfoEnabled) { _log.InfoFormat("Unknown0={0}", Unknown0.ToString()); } Unknown1 = BitConverter.ToInt32(byteArray, startIndex + 4); if (_log.IsInfoEnabled) { _log.InfoFormat("Unknown1={0}", Unknown1.ToString()); } Unknown2 = BitConverter.ToInt32(byteArray, startIndex + 8); if (_log.IsInfoEnabled) { _log.InfoFormat("Unknown2={0}", Unknown2.ToString()); } Name = new ArtemisString(byteArray, startIndex + 12); if (_log.IsInfoEnabled) { _log.InfoFormat("Name={0}", Name.ToString()); } Length = 16 + Name.Length * 2; if (_log.IsInfoEnabled) { _log.InfoFormat("Length={0}", Length.ToString()); } if (_log.IsInfoEnabled) { _log.InfoFormat("{0}--Result bytes: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(this.GetBytes())); } } }