示例#1
0
 public static void Initialize()
 {
     PacketHandlers.Register(0x56, 11, true, OnMapCommand);
 }
示例#2
0
 public static void Initialize()
 {
     PacketHandlers.Register(0xF0, 0, false, new OnPacketReceive(DecodeBundledPacket));
 }
示例#3
0
 public static void ContentChangeOverride()
 {
     PacketHandlers.Register(0x66, 0, true, BaseEntryBook.ContentChange);
 }
示例#4
0
文件: Chat.cs 项目: silky/ModernUO
 public static void Initialize()
 {
     PacketHandlers.Register(0xB5, 0x40, true, OpenChatWindowRequest);
     PacketHandlers.Register(0xB3, 0, true, ChatAction);
 }
示例#5
0
 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));
 }
示例#6
0
 public static void Initialize()
 {
     PacketHandlers.Register(0x71, 0, true, new OnPacketReceive(BBClientRequest));
 }
示例#7
0
 public static void Initialize()
 {
     PacketHandlers.Register(0x56, 11, true, new OnPacketReceive(OnMapCommand));
 }
示例#8
0
 private static void AfterInit()
 {
     PacketHandlers.Register(0xB1, 0, true, new OnPacketReceive(DisplayGumpResponse));
 }
示例#9
0
 public static void Initialize()
 {
     PacketHandlers.Register(0xD4, 0, true, HeaderChange);
     PacketHandlers.Register(0x66, 0, true, ContentChange);
     PacketHandlers.Register(0x93, 99, true, OldHeaderChange);
 }
示例#10
0
 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));
 }
示例#11
0
 public static void Initialize()
 {
     PacketHandlers.Register(0xB5, 0x40, true, new OnPacketReceive(OpenChatWindowRequest));
     PacketHandlers.Register(0xB3, 0, true, new OnPacketReceive(ChatAction));
 }
示例#12
0
 public static void Initialize()
 {
     PacketHandlers.Register(0xF0, 0, false, DecodeBundledPacket);
 }
示例#13
0
        public static void Initialize()
        {
            PacketHandlers.Register(0xF0, 0, true, new OnPacketReceive(DecodeBundledPacket));

            Register(0x00, true, new OnPacketReceive(QueryPartyLocations));
        }
示例#14
0
 public static void Configure()
 {
     PacketHandlers.Register(0xAC, 0, true, new OnPacketReceive(BountyEntryResponse));
 }
示例#15
0
        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());
            }
        }
示例#16
0
 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));
 }