From bf604c85c66dd3bed06e3103cdf210ede02c151f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 24 Jul 2016 15:17:25 +0100 Subject: add missing IM parameter ( needs fix where it is really relevant ) --- OpenSim/Framework/GridInstantMessage.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/GridInstantMessage.cs b/OpenSim/Framework/GridInstantMessage.cs index da3690c..d856173 100644 --- a/OpenSim/Framework/GridInstantMessage.cs +++ b/OpenSim/Framework/GridInstantMessage.cs @@ -47,6 +47,7 @@ namespace OpenSim.Framework public uint ParentEstateID; public Guid RegionID; public uint timestamp; + public Guid ID; public GridInstantMessage() { @@ -66,6 +67,8 @@ namespace OpenSim.Framework Position = im.Position; binaryBucket = im.binaryBucket; RegionID = im.RegionID; + ParentEstateID = im.ParentEstateID; + ID = im.ID; if (addTimestamp) timestamp = (uint)Util.UnixTimeSinceEpoch(); @@ -75,7 +78,7 @@ namespace OpenSim.Framework string _fromAgentName, UUID _toAgentID, byte _dialog, bool _fromGroup, string _message, UUID _imSessionID, bool _offline, Vector3 _position, - byte[] _binaryBucket, bool addTimestamp) + byte[] _binaryBucket, UUID _ID, bool addTimestamp) { fromAgentID = _fromAgentID.Guid; fromAgentName = _fromAgentName; @@ -84,6 +87,8 @@ namespace OpenSim.Framework fromGroup = _fromGroup; message = _message; imSessionID = _imSessionID.Guid; + ID = _ID.Guid; + if (_offline) offline = 1; else @@ -102,11 +107,21 @@ namespace OpenSim.Framework } public GridInstantMessage(IScene scene, UUID _fromAgentID, + string _fromAgentName, UUID _toAgentID, + byte _dialog, bool _fromGroup, string _message, + UUID _imSessionID, bool _offline, Vector3 _position, + byte[] _binaryBucket, bool addTimestamp) : this(scene, _fromAgentID, _fromAgentName, + _toAgentID, _dialog, false, _message, + _fromAgentID ^ _toAgentID, _offline, _position, new byte[0], UUID.Zero, true) + { + } + + public GridInstantMessage(IScene scene, UUID _fromAgentID, string _fromAgentName, UUID _toAgentID, byte _dialog, string _message, bool _offline, Vector3 _position) : this(scene, _fromAgentID, _fromAgentName, _toAgentID, _dialog, false, _message, - _fromAgentID ^ _toAgentID, _offline, _position, new byte[0], true) + _fromAgentID ^ _toAgentID, _offline, _position, new byte[0], UUID.Zero, true) { } } -- cgit v1.1