public static void Initialize() { PacketHandlers.Register(0x56, 11, true, OnMapCommand); }
public static void Initialize() { PacketHandlers.Register(0xF0, 0, false, new OnPacketReceive(DecodeBundledPacket)); }
public static void ContentChangeOverride() { PacketHandlers.Register(0x66, 0, true, BaseEntryBook.ContentChange); }
public static void Initialize() { PacketHandlers.Register(0xB5, 0x40, true, OpenChatWindowRequest); PacketHandlers.Register(0xB3, 0, true, ChatAction); }
public static void Initialize() { PacketHandlers.Register(0xD4, 0, true, new OnPacketReceive(HeaderChange)); PacketHandlers.Register(0x66, 0, true, new OnPacketReceive(ContentChange)); PacketHandlers.Register(0x93, 99, true, new OnPacketReceive(OldHeaderChange)); }
public static void Initialize() { PacketHandlers.Register(0x71, 0, true, new OnPacketReceive(BBClientRequest)); }
public static void Initialize() { PacketHandlers.Register(0x56, 11, true, new OnPacketReceive(OnMapCommand)); }
private static void AfterInit() { PacketHandlers.Register(0xB1, 0, true, new OnPacketReceive(DisplayGumpResponse)); }
public static void Initialize() { PacketHandlers.Register(0xD4, 0, true, HeaderChange); PacketHandlers.Register(0x66, 0, true, ContentChange); PacketHandlers.Register(0x93, 99, true, OldHeaderChange); }
public static void Configure() { PacketHandlers.Register(0xF1, 0, false, new OnPacketReceive(OnReceive)); Core.MultiConsoleOut.Add(new EventTextWriter(new EventTextWriter.OnConsoleChar(OnConsoleChar), new EventTextWriter.OnConsoleLine(OnConsoleLine), new EventTextWriter.OnConsoleStr(OnConsoleString))); Timer.DelayCall(TimeSpan.FromMinutes(2.5), TimeSpan.FromMinutes(2.5), new TimerCallback(CleanUp)); }
public static void Initialize() { PacketHandlers.Register(0xB5, 0x40, true, new OnPacketReceive(OpenChatWindowRequest)); PacketHandlers.Register(0xB3, 0, true, new OnPacketReceive(ChatAction)); }
public static void Initialize() { PacketHandlers.Register(0xF0, 0, false, DecodeBundledPacket); }
public static void Initialize() { PacketHandlers.Register(0xF0, 0, true, new OnPacketReceive(DecodeBundledPacket)); Register(0x00, true, new OnPacketReceive(QueryPartyLocations)); }
public static void Configure() { PacketHandlers.Register(0xAC, 0, true, new OnPacketReceive(BountyEntryResponse)); }
public static bool InitWithArguments(string[] args) { AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve; //Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Console.WriteLine("Loading Content..."); ILocator locator; OperatingSystem os = Environment.OSVersion; PlatformID pid = os.Platform; bool linux = pid == PlatformID.MacOSX || pid == PlatformID.Unix; if (linux) { locator = new LinuxLocator(); } else { locator = new WindowsLocator(); } string path = locator.FindTheSimsOnline(); bool useDX = false; UseDX = MonogameLinker.Link(useDX); if (path != null) { GlobalSettings.Default.Load(); var simspath = locator.FindTheSimsComplete(); FSOEnvironment.SimsCompleteDir = simspath; FSOEnvironment.ContentDir = "Content/"; FSOEnvironment.GFXContentDir = "Content/" + (useDX ? "DX/" : "OGL/"); GlobalSettings.Default.StartupPath = path; GlobalSettings.Default.Save(); } FSO.Content.Content.Init(path, null); Console.WriteLine("Success!"); Console.WriteLine("Starting VM server..."); PacketHandlers.Register((byte)PacketType.VM_PACKET, false, 0, new OnPacketReceive(VMPacket)); StartVM(); Stream inputStream = Console.OpenStandardInput(); while (true) { Inst.SendMessage(Console.ReadLine()); } }
public static void Configure() { PacketHandlers.Register(0xF1, 0, false, new OnPacketReceive(OnReceive)); Timer.DelayCall(TimeSpan.FromMinutes(2.5), TimeSpan.FromMinutes(2.5), new TimerCallback(CleanUp)); }