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); }
public key(OpenMetaverse.UUID s) { value = s.ToString(); }
public static EntityNameLL ConvertTextureWorldIDToEntityName(AssetContextBase context, OMV.UUID textureWorldID) { return ConvertTextureWorldIDToEntityName(context, textureWorldID.ToString()); }
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 ); }
public static EntityName AvatarEntityNameFromID(AssetContextBase acontext, OMV.UUID ID) { return new EntityNameLL(acontext, "Avatar/" + ID.ToString()); }
public LSLString(OpenMetaverse.UUID s) { m_string = s.ToString(); }
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; } }
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); } }
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; }
public string GetCapsPath(OpenMetaverse.UUID agentId) { return agentId.ToString(); }
public void onRemoveAvatar(OpenMetaverse.UUID uuid) { string msg = MGMJson.RemoveAvatar(uuid.ToString()); mgmLink.send(msg); }
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; } }
public OpenMetaverse.Quaternion ModTest6(UUID hostID, UUID scriptID, OpenMetaverse.Quaternion value) { m_log.WarnFormat("[ModInvoke] ModTest6 parameter: {0}",value.ToString()); return value; }
public OpenMetaverse.Vector3 ModTest5(UUID hostID, UUID scriptID, OpenMetaverse.Vector3 value) { m_log.WarnFormat("[ModInvoke] ModTest5 parameter: {0}",value.ToString()); return value; }