Esempio n. 1
0
        public static bool Initialize()
        {
            try
            {
                Session.Initialize();
                Instance._loadedModfiles = ModLoader.GetAllModFiles();

                Instance.CreateClient();
                Instance.SetupEvents();

                ClientInitializer.Initialize();
                return(true);
            }
            catch (System.Exception)
            {
                ClientOutput.HeaderError("Failed starting client");
                throw;
            }
        }
Esempio n. 2
0
        private static void ReceiveObjectIDManifest(Peer peer, byte[] data)
        {
            Dictionary <string, ushort> ids = ByteConverter.Deserialize <Dictionary <string, ushort> >(data);

            ClientInitializer.InitializeObjectReferenceManifest(Client.LoadedModFiles, ids);
        }