minor:comments
parent
18634e9dd8
commit
0a85d1d767
|
@ -31,10 +31,17 @@ using OpenMetaverse.StructuredData;
|
|||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Information about an Animation
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Animation
|
||||
{
|
||||
private UUID animID;
|
||||
|
||||
/// <summary>
|
||||
/// ID of Animation
|
||||
/// </summary>
|
||||
public UUID AnimID
|
||||
{
|
||||
get { return animID; }
|
||||
|
@ -49,6 +56,10 @@ namespace OpenSim.Framework
|
|||
}
|
||||
|
||||
private UUID objectID;
|
||||
|
||||
/// <summary>
|
||||
/// Unique ID of object that is being animated
|
||||
/// </summary>
|
||||
public UUID ObjectID
|
||||
{
|
||||
get { return objectID; }
|
||||
|
@ -59,6 +70,12 @@ namespace OpenSim.Framework
|
|||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an Animation based on the data
|
||||
/// </summary>
|
||||
/// <param name="animID">UUID ID of animation</param>
|
||||
/// <param name="sequenceNum"></param>
|
||||
/// <param name="objectID">ID of object to be animated</param>
|
||||
public Animation(UUID animID, int sequenceNum, UUID objectID)
|
||||
{
|
||||
this.animID = animID;
|
||||
|
@ -66,11 +83,20 @@ namespace OpenSim.Framework
|
|||
this.objectID = objectID;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Animation from OSDMap from LLSD XML or LLSD json
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
public Animation(OSDMap args)
|
||||
{
|
||||
UnpackUpdateMessage(args);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Pack this object up as an OSDMap for transferring via LLSD XML or LLSD json
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public OSDMap PackUpdateMessage()
|
||||
{
|
||||
OSDMap anim = new OSDMap();
|
||||
|
@ -80,6 +106,10 @@ namespace OpenSim.Framework
|
|||
return anim;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fill object with data from OSDMap
|
||||
/// </summary>
|
||||
/// <param name="args"></param>
|
||||
public void UnpackUpdateMessage(OSDMap args)
|
||||
{
|
||||
if (args["animation"] != null)
|
||||
|
|
|
@ -31,10 +31,20 @@ using OpenMetaverse;
|
|||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Asset class. All Assets are reference by this class or a class derived from this class
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AssetBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Data of the Asset
|
||||
/// </summary>
|
||||
private byte[] m_data;
|
||||
|
||||
/// <summary>
|
||||
/// Meta Data of the Asset
|
||||
/// </summary>
|
||||
private AssetMetadata m_metadata;
|
||||
|
||||
public AssetBase()
|
||||
|
@ -71,6 +81,9 @@ namespace OpenSim.Framework
|
|||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if this asset is a binary or text asset
|
||||
/// </summary>
|
||||
public bool IsBinaryAsset
|
||||
{
|
||||
get
|
||||
|
@ -102,12 +115,17 @@ namespace OpenSim.Framework
|
|||
set { m_data = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asset UUID
|
||||
/// </summary>
|
||||
public UUID FullID
|
||||
{
|
||||
get { return m_metadata.FullID; }
|
||||
set { m_metadata.FullID = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asset MetaData ID (transferring from UUID to string ID)
|
||||
/// </summary>
|
||||
public string ID
|
||||
{
|
||||
get { return m_metadata.ID; }
|
||||
|
@ -126,18 +144,27 @@ namespace OpenSim.Framework
|
|||
set { m_metadata.Description = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// (sbyte) AssetType enum
|
||||
/// </summary>
|
||||
public sbyte Type
|
||||
{
|
||||
get { return m_metadata.Type; }
|
||||
set { m_metadata.Type = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is this a region only asset, or does this exist on the asset server also
|
||||
/// </summary>
|
||||
public bool Local
|
||||
{
|
||||
get { return m_metadata.Local; }
|
||||
set { m_metadata.Local = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is this asset going to be saved to the asset database?
|
||||
/// </summary>
|
||||
public bool Temporary
|
||||
{
|
||||
get { return m_metadata.Temporary; }
|
||||
|
|
|
@ -28,14 +28,13 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security.Permissions;
|
||||
using OpenMetaverse;
|
||||
using log4net;
|
||||
using System.Reflection;
|
||||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains the Avatar's Appearance and methods to manipulate the appearance.
|
||||
/// </summary>
|
||||
public class AvatarAppearance
|
||||
{
|
||||
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
|
|
@ -29,10 +29,24 @@ using OpenMetaverse;
|
|||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Avatar returned by the Avatar Picker request
|
||||
/// </summary>
|
||||
public class AvatarPickerAvatar
|
||||
{
|
||||
/// <summary>
|
||||
/// Avatar's Unique ID
|
||||
/// </summary>
|
||||
public UUID AvatarID;
|
||||
|
||||
/// <summary>
|
||||
/// Avatar's Account first name
|
||||
/// </summary>
|
||||
public string firstName;
|
||||
|
||||
/// <summary>
|
||||
/// Avatar's Account last name
|
||||
/// </summary>
|
||||
public string lastName;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,9 +30,19 @@ using OpenMetaverse;
|
|||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Args to return to a client that queries picker data
|
||||
/// </summary>
|
||||
public class AvatarPickerReplyAgentDataArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique Agent ID
|
||||
/// </summary>
|
||||
public UUID AgentID;
|
||||
|
||||
/// <summary>
|
||||
/// ID of query user submitted
|
||||
/// </summary>
|
||||
public UUID QueryID;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,9 @@ namespace OpenSim.Framework
|
|||
get { return m_cultureInfo; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set Culture to en-US to make string processing of numbers simpler.
|
||||
/// </summary>
|
||||
public static void SetCurrentCulture()
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = m_cultureInfo;
|
||||
|
|
|
@ -31,6 +31,9 @@ using OpenMetaverse;
|
|||
|
||||
namespace OpenSim.Framework
|
||||
{
|
||||
/// <summary>
|
||||
/// Details of a Parcel of land
|
||||
/// </summary>
|
||||
public class LandData
|
||||
{
|
||||
private Vector3 _AABBMax = new Vector3();
|
||||
|
|
Loading…
Reference in New Issue