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())); } } }
public bool Equals(PedType other) { if (other == null) { return(false); } return(Flag.Equals(other.Flag) && Unknown0.Equals(other.Unknown0) && Unknown1.Equals(other.Unknown1) && Unknown2.Equals(other.Unknown2) && Unknown3.Equals(other.Unknown3) && Unknown4.Equals(other.Unknown4) && Threats.Equals(other.Threats) && Avoid.Equals(other.Avoid)); }
public override string ToString() { return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Pad0)}={Pad0.ToString("X")}, {nameof(Pad1)}={Pad1.ToString("X")}}}"); }
public override string ToString() { return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Unknown2)}={Unknown2.ToString("X")}, {nameof(Unknown3)}={Unknown3.ToString("X")}, {nameof(Unknown4)}={Unknown4.ToString("X")}, {nameof(Unknown5)}={Unknown5.ToString("X")}, {nameof(Unknown6)}={Unknown6.ToString("X")}, {nameof(Unknown7)}={Unknown7.ToString("X")}}}"); }
public override string ToString() { return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Unknown2)}={Unknown2.ToString("X")}, {nameof(HorizontalBoost)}={HorizontalBoost.ToString("X")}, {nameof(HopsOffset)}={HopsOffset.ToString("X")}, {nameof(UnknownDatasOffset)}={UnknownDatasOffset.ToString("X")}, {nameof(TurnFrames)}={TurnFrames.ToString("X")}, {nameof(Hops)}={Hops}, {nameof(MultiJumpUnknown)}={MultiJumpUnknown}}}"); }