OpenSim.Region.Framework.Scenes.Scene.GetAvatarAppearance C# (CSharp) 메소드

GetAvatarAppearance() 공개 메소드

Get the avatar apperance for the given client.
public GetAvatarAppearance ( IClientAPI client, AvatarAppearance &appearance ) : void
client IClientAPI
appearance AvatarAppearance
리턴 void
        public void GetAvatarAppearance(IClientAPI client, out AvatarAppearance appearance)
        {
            AgentCircuitData aCircuit = m_authenticateHandler.GetAgentCircuitData(client.CircuitCode);

            if (aCircuit == null)
            {
                m_log.DebugFormat("[APPEARANCE] Client did not supply a circuit. Non-Linden? Creating default appearance.");
                appearance = new AvatarAppearance(client.AgentId);
                return;
            }

            appearance = aCircuit.Appearance;
            if (appearance == null)
            {
                m_log.DebugFormat("[APPEARANCE]: Appearance not found in {0}, returning default", RegionInfo.RegionName);
                appearance = new AvatarAppearance(client.AgentId);
            }
        }
Scene