/// <summary> /// Create a message object from the specified buffer. /// </summary> /// <param name="aBuf">The buffer containing the message.</param> /// <param name="aIndex">The index where the message is starting in the buffer.</param> /// <param name="aLength">The length of the message.</param> internal MsgName(Byte[] aBuf, int aIndex, int aLength) : base(aBuf, aIndex, aLength) { __Data = BitConverter.ToUInt32(mBuf, 4); __Type = (NameAct)mBuf[8]; __StrPacker = new StringPacker(this, 9); }
public MsgName(Int32 aData, String aParam, NameAct aType) : base((UInt16)(12 + aParam.Length)) { Data = (UInt32)aData; Type = aType; __StrPacker = new StringPacker(this, 9); __StrPacker.AddString(aParam); }
public MsgName(UInt16 aPosX, UInt16 aPosY, String aParam, NameAct aType) : base((UInt16)(12 + aParam.Length)) { PosX = aPosX; PosY = aPosY; Type = aType; __StrPacker = new StringPacker(this, 9); __StrPacker.AddString(aParam); }
public MsgName(UInt32 aData, String[] aParams, NameAct aType) : base((UInt16)(12 + aParams.Select(p => p.Length + 1).Sum())) { Data = aData; Type = aType; __StrPacker = new StringPacker(this, 9); foreach (String param in aParams) { __StrPacker.AddString(param); } }