public static String RemoveAvatar(string uuid) { Dictionary <string, object> msg = new Dictionary <string, object>(); msg["type"] = "removeAvatar"; msg["uuid"] = uuid; return(MGMJson.Encode(msg)); }
public static String Frame() { TimeSpan t = DateTime.Now - new DateTime(1970, 1, 1); int secondsSinceEpoch = (int)t.TotalMilliseconds; Dictionary <string, object> msg = new Dictionary <string, object>(); msg["type"] = "frame"; msg["ms"] = secondsSinceEpoch; return(MGMJson.Encode(msg)); }
public static string InstantMessage(string sender, string target, int isGroup, string message) { Dictionary <string, object> msg = new Dictionary <string, object>(); msg["type"] = "instantMessage"; msg["sender"] = sender; msg["target"] = target; msg["isGroup"] = isGroup; msg["body"] = message; return(MGMJson.Encode(msg)); }
public static String Register(string regionName, uint locX, uint locY, uint regionSize) { Dictionary <string, object> msg = new Dictionary <string, object>(); msg["type"] = "register"; msg["name"] = regionName; msg["locX"] = locX; msg["locY"] = locY; msg["size"] = regionSize; return(MGMJson.Encode(msg)); }
public static String AvatarMoved(string uuid, OpenMetaverse.Vector3 position, OpenMetaverse.Quaternion rotation, OpenMetaverse.Vector3 velocity) { Dictionary <string, object> msg = new Dictionary <string, object>(); msg ["type"] = "moveAvatar"; msg ["uuid"] = uuid; msg ["position"] = position; msg ["rotation"] = rotation; msg ["velocity"] = velocity; return(MGMJson.Encode(msg)); }
public static String TextMessage(string sender, string target, int channel, string chatType, string pos, string message) { Dictionary <string, object> msg = new Dictionary <string, object>(); msg["type"] = "textMessage"; msg["sender"] = sender; msg["target"] = target; msg["channel"] = channel; msg["chatType"] = chatType; msg["pos"] = pos; msg["body"] = message; return(MGMJson.Encode(msg)); }