コード例 #1
0
ファイル: CapsService.cs プロジェクト: satlanski2/Aurora-Sim
 /// <summary>
 /// Get or create a new Caps Service for the given client
 /// Note: This does not add them to a region if one is created.
 /// </summary>
 /// <param name="AgentID"></param>
 /// <returns></returns>
 public IClientCapsService GetOrCreateClientCapsService(UUID AgentID)
 {
     if (!m_ClientCapsServices.ContainsKey(AgentID))
     {
         PerClientBasedCapsService client = new PerClientBasedCapsService();
         client.Initialise(this, AgentID);
         m_ClientCapsServices.Add(AgentID, client);
     }
     return(m_ClientCapsServices[AgentID]);
 }
コード例 #2
0
ファイル: CapsService.cs プロジェクト: JAllard/Aurora-Sim
 /// <summary>
 /// Get or create a new Caps Service for the given client
 /// Note: This does not add them to a region if one is created. 
 /// </summary>
 /// <param name="AgentID"></param>
 /// <returns></returns>
 public IClientCapsService GetOrCreateClientCapsService(UUID AgentID)
 {
     if (!m_ClientCapsServices.ContainsKey(AgentID))
     {
         PerClientBasedCapsService client = new PerClientBasedCapsService();
         client.Initialise(this, AgentID);
         m_ClientCapsServices.Add(AgentID, client);
     }
     return m_ClientCapsServices[AgentID];
 }