/// <summary> /// Take any object to serialize as byte array, packet destinations and packet message flag and build a Packet class /// </summary> /// <param name="obj"></param> /// <param name="destinationID"></param> /// <param name="messageFlag"></param> public Packet(object obj, Guid destinationID, TypeFlag messageFlag = TypeFlag.DATA, int packetId = -1) : this(NUUtilities.GetBytes(obj), new[] { destinationID }, messageFlag, packetId) { }
/// <summary> /// Take any object to serialize as byte array, packet destinations and packet message flag and build a Packet class /// </summary> /// <param name="obj"></param> /// <param name="destinationIDs"></param> /// <param name="messageFlag"></param> public Packet(object obj, Guid[] destinationIDs = null, TypeFlag messageFlag = TypeFlag.DATA, int packetId = -1) : this(NUUtilities.GetBytes(obj), destinationIDs, messageFlag, packetId) { }