本文整理汇总了C#中OpenMetaverse.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# OpenMetaverse.ToString方法的具体用法?C# OpenMetaverse.ToString怎么用?C# OpenMetaverse.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenMetaverse
的用法示例。
在下文中一共展示了OpenMetaverse.ToString方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessChat
private void ProcessChat(string message, ChatAudibleLevel audible, ChatType type, ChatSourceType sourceType, string fromName, OpenMetaverse.UUID id, OpenMetaverse.UUID ownerid, OpenMetaverse.Vector3 position)
{
string msg = JsonUtil.SerializeMessage(JsonType.ChatReceived, new JsonChatReceived(
message,
(int)type,
fromName,
id.ToString(),
ownerid.ToString(),
position.X,
position.Y,
position.Z
));
Ox.EventFire(msg, true);
}
示例2: key
public key(OpenMetaverse.UUID s)
{
value = s.ToString();
}
示例3: ConvertTextureWorldIDToEntityName
public static EntityNameLL ConvertTextureWorldIDToEntityName(AssetContextBase context, OMV.UUID textureWorldID)
{
return ConvertTextureWorldIDToEntityName(context, textureWorldID.ToString());
}
示例4: IsSystemUser
public static bool IsSystemUser(OpenMetaverse.UUID userID)
{
var userId = userID.ToString();
return ( userId == Constants.GovernorUUID ||
userId == Constants.RealEstateOwnerUUID ||
userId == Constants.LibraryOwner ||
userId == Constants.BankerUUID ||
userId == Constants.MarketplaceUUID
);
}
示例5: AvatarEntityNameFromID
public static EntityName AvatarEntityNameFromID(AssetContextBase acontext, OMV.UUID ID)
{
return new EntityNameLL(acontext, "Avatar/" + ID.ToString());
}
示例6: LSLString
public LSLString(OpenMetaverse.UUID s)
{
m_string = s.ToString();
}
示例7: RequestAssetSync
public AssetBase RequestAssetSync(OpenMetaverse.UUID assetID)
{
try
{
AssetBase asset = this.WhipAssetToOpensim(_readWhipServer.GetAsset(assetID.ToString()));
return asset;
}
catch (AssetServerError e)
{
string errorString = e.ToString();
if (!errorString.Contains("not found"))
{
//there is an error, log it, and then tell the caller we have no asset to give
_log.ErrorFormat(
"[WHIP.AssetClient]: Failure fetching asset {0}" + Environment.NewLine + errorString
+ Environment.NewLine, assetID);
}
return null;
}
}
示例8: RequestAsset
public void RequestAsset(OpenMetaverse.UUID assetID, AssetRequestInfo args)
{
try
{
_readWhipServer.GetAssetAsync(assetID.ToString(),
delegate(Asset asset, AssetServerError e)
{
if (e == null)
{
//no error, pass asset to caller
_receiver.AssetReceived(WhipAssetToOpensim(asset), args);
}
else
{
string errorString = e.ToString();
if (!errorString.Contains("not found"))
{
//there is an error, log it, and then tell the caller we have no asset to give
_log.ErrorFormat(
"[WHIP.AssetClient]: Failure fetching asset {0}" + Environment.NewLine + errorString
+ Environment.NewLine, assetID);
}
_receiver.AssetNotFound(assetID, args);
}
}
);
}
catch (AssetServerError e)
{
//there is an error, log it, and then tell the caller we have no asset to give
string errorString = e.ToString();
if (!errorString.Contains("not found"))
{
_log.ErrorFormat(
"[WHIP.AssetClient]: Failure fetching asset {0}" + Environment.NewLine + errorString
+ Environment.NewLine, assetID);
}
_receiver.AssetNotFound(assetID, args);
}
}
示例9: MapUser
public MappedIdentity MapUser(OpenMetaverse.UUID SlId, string SlName = null)
{
var identity = new MappedIdentity(IdentityCategory.Agent);
identity.AvatarID = SlId;
if(SlName != null && !UsernameToKeyCache.ContainsKey(SlName))
{
identity.SlName = SlName;
UsernameToKeyCache[SlName] = SlId;
KeyToUsernameCache[SlId] = SlName;
}
if(KeyToUsernameCache.ContainsKey(SlId))
{
identity.SlName = KeyToUsernameCache[SlId];
}
else
{
identity.SlName = ResolveNameFromId(SlId);
}
identity.IrcNick = MakeIrcName(identity.SlName, ".");
identity.IrcIdent = SlId.ToString();
identity.IrcDomain = AGENTHOST;
return identity;
}
示例10: GetCapsPath
public string GetCapsPath(OpenMetaverse.UUID agentId)
{
return agentId.ToString();
}
示例11: onRemoveAvatar
public void onRemoveAvatar(OpenMetaverse.UUID uuid)
{
string msg = MGMJson.RemoveAvatar(uuid.ToString());
mgmLink.send(msg);
}
示例12: ProcessLogin
private void ProcessLogin(OpenMetaverse.LoginStatus login, string message)
{
string beforeStatus = Ox.DataStore.World.Agent.LoginStatus;
Ox.DataStore.World.Agent.LoginStatus = login.ToString();
Ox.DataStore.World.Agent.LoginMessage = message;
Ox.EventFire(JsonUtil.SerializeMessage(JsonType.StateInside, new JsonState((int)StatusData.Type.LoginEnd)), true);
switch (login)
{
case LoginStatus.ConnectingToLogin:
break;
case LoginStatus.ConnectingToSim:
break;
case LoginStatus.Failed:
if (Ox.DataStore.World.Agent.LoginFailedCount > 0)
{
Ox.Function(JsonUtil.SerializeMessage(JsonType.Logout, new JsonLogout()));
System.Windows.Forms.MessageBox.Show("Login failed. Please wait and retry.");
break;
}
Ox.Function(JsonUtil.SerializeMessage(JsonType.Login, new JsonLogin(
loginCurrentParam.FirstName,
loginCurrentParam.LastName,
loginCurrentParam.Password,
loginCurrentParam.URI,
loginCurrentParam.Start
)));
Ox.DataStore.World.Agent.LoginFailedCount++;
break;
case LoginStatus.None:
break;
case LoginStatus.ReadingResponse:
break;
case LoginStatus.Redirecting:
break;
case LoginStatus.Success:
Ox.DataStore.World.Agent.LoginFailedCount = 0;
Ox.DataStore.World.Agent.AssetServerUri = client.Network.AssetServerUri;
Ox.DataStore.World.Agent.AuthToken = client.Network.SecureSessionID.ToString();
Ox.DataStore.World.Agent.SimID = client.Network.CurrentSim.ID.ToString();
Ox.DataStore.World.Agent.ID = client.Self.AgentID.ToString();
Ox.DataStore.World.Agent.First = client.Self.FirstName;
Ox.DataStore.World.Agent.Last = client.Self.LastName;
Ox.EventFire(JsonUtil.SerializeMessage(JsonType.AgentInfo, new JsonAgentInfo(
Ox.DataStore.World.Agent.ID,
Ox.DataStore.World.Agent.SimID,
Ox.DataStore.World.Agent.First,
Ox.DataStore.World.Agent.Last
)), true);
break;
}
}
示例13: ModTest6
public OpenMetaverse.Quaternion ModTest6(UUID hostID, UUID scriptID, OpenMetaverse.Quaternion value)
{
m_log.WarnFormat("[ModInvoke] ModTest6 parameter: {0}",value.ToString());
return value;
}
示例14: ModTest5
public OpenMetaverse.Vector3 ModTest5(UUID hostID, UUID scriptID, OpenMetaverse.Vector3 value)
{
m_log.WarnFormat("[ModInvoke] ModTest5 parameter: {0}",value.ToString());
return value;
}