mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
More work on OpenGrid.Framework.Communications
This commit is contained in:
@@ -6,7 +6,7 @@ using OpenSim.Framework.Types;
|
||||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
public delegate void ExpectUserDelegate();
|
||||
public delegate void ExpectUserDelegate(AgentCircuitData agent);
|
||||
public delegate void UpdateNeighbours(List<RegionInfo> neighbours);
|
||||
|
||||
public interface IRegionCommsHost
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
<Compile Include="LoginService.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="RegionCommsHostBase.cs" />
|
||||
<Compile Include="Remoting.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
|
||||
32
Common/OpenSim.Framework/RegionCommsHostBase.cs
Normal file
32
Common/OpenSim.Framework/RegionCommsHostBase.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Framework.Types;
|
||||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
public class RegionCommsHostBase :IRegionCommsHost
|
||||
{
|
||||
public event ExpectUserDelegate OnExpectUser;
|
||||
public event GenericCall2 OnExpectChildAgent;
|
||||
public event GenericCall2 OnAvatarCrossingIntoRegion;
|
||||
public event UpdateNeighbours OnNeighboursUpdate;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="agent"></param>
|
||||
/// <returns></returns>
|
||||
public virtual bool TriggerExpectUser(AgentCircuitData agent)
|
||||
{
|
||||
if(OnExpectUser != null)
|
||||
{
|
||||
OnExpectUser(agent);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user