* Completed a partial port of OpenSim's LSL API. Thank you to everyone on the OpenSim team for their hard work on this incredibly large feature * Added Agent.GetSimulatorPosition() * Corrected default PrimFlags for agents and prims * Stubs for encoding/decoding prim linkset assets * Route chat through the scene * Stub for grid messaging (IM and email) * Add GetTerrainHeightAt(), removed duplicate heightmap storage in Movement.cs * Added a permissions manager stub * Store wind speeds, added functions to get wind speed * Make sure all of the important prim properties are set before creating an object * Lots of new object manipulation functions in scene * Properly clean up event queues on agent exit * Stubbed out a space for a scripting engine * Stubbed out task inventory * Added ScriptingConsole, which allows you to run LSL functions from the chat console * Added new PacketCategory, Messaging, for chat-related packets * Fixed InventoryObject overrides * Added a NotecardCache, useful for the scripting engine and may become generally useful later * Added several helper functions and new members to SimulationObject git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2462 52acb1d6-8a22-11de-b505-999d5b087335
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using ExtensionLoader;
|
|
using OpenMetaverse;
|
|
|
|
namespace Simian.Extensions
|
|
{
|
|
// FIXME: Implement this class
|
|
class MessagingLocal : IExtension<Simian>, IMessagingProvider
|
|
{
|
|
Simian server;
|
|
|
|
public event InstantMessageCallback OnInstantMessage;
|
|
|
|
public MessagingLocal()
|
|
{
|
|
}
|
|
|
|
public void Start(Simian server)
|
|
{
|
|
this.server = server;
|
|
}
|
|
|
|
public void Stop()
|
|
{
|
|
}
|
|
|
|
public void SendInstantMessage(object sender, UUID fromID, string fromName, UUID toID, InstantMessageDialog dialog, bool fromGroup,
|
|
UUID sessionID, bool offline, Vector3 position, uint parentEstateID, UUID regionID, DateTime timestamp, string message,
|
|
byte[] extraData)
|
|
{
|
|
if (OnInstantMessage != null)
|
|
{
|
|
OnInstantMessage(sender, fromID, fromName, toID, dialog, fromGroup, sessionID, offline, position, parentEstateID,
|
|
regionID, timestamp, message, extraData);
|
|
}
|
|
}
|
|
|
|
public void SendEmail(object sender, UUID fromID, string address, string subject, string message)
|
|
{
|
|
}
|
|
|
|
public bool GetNextEmail(UUID toID, string address, string subject, out Email email)
|
|
{
|
|
email = null;
|
|
return false;
|
|
}
|
|
}
|
|
}
|