Files
libremetaverse/libsecondlife-cs/SecondLife.cs
John Hurliman f31d44be06 Initial import of the C# fork
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@19 52acb1d6-8a22-11de-b505-999d5b087335
2006-06-08 14:49:17 +00:00

55 lines
1.1 KiB
C#

using System;
namespace libsecondlife
{
public class Helpers
{
public const string VERSION = "libsecondlife-cs 0.0.3";
public const byte MSG_APPENDED_ACKS = 0x10;
public const byte MSG_RESENT = 0x20;
public const byte MSG_RELIABLE = 0x40;
public const byte MSG_ZEROCODED = 0x80;
public const ushort MSG_FREQ_HIGH = 0x0000;
public const ushort MSG_FREQ_MED = 0xFF00;
public const ushort MSG_FREQ_LOW = 0xFFFF;
public enum LogLevel
{
Info,
Warning,
Error
};
public static void Log(string message, LogLevel level)
{
Console.WriteLine(level.ToString() + ": " + message);
}
}
public class PacketWrapper
{
}
/// <summary>
/// FIXME: Fill this in
/// </summary>
public class SecondLife
{
public ProtocolManager Protocol;
public NetworkManager Network;
public SecondLife(string keywordFile, string mapFile)
{
Protocol = new ProtocolManager(keywordFile, mapFile);
Network = new NetworkManager(Protocol);
}
public void Tick()
{
System.Threading.Thread.Sleep(0);
}
}
}