Esempio n. 1
0
        public override void LoadCustomData(System.IO.BinaryReader reader)
        {
            // Load the core data.
            core = (CoreBase)ItemLoader.GetItem(reader.ReadInt32());

            // Load all modules back into the 'modules' array.
            for (int i = 0; i < modules.Length; ++i)
            {
                int value = reader.ReadInt32();
                if (ItemLoader.GetItem(value) != null)
                {
                    modules[i] = (ModuleBase)ItemLoader.GetItem(value);
                }
            }
        }
Esempio n. 2
0
        public override void LoadCustomData(System.IO.BinaryReader reader)
        {
            // Load the core data.
            core = (CoreBase)ItemLoader.GetItem(reader.ReadInt32());

            // Load all modules back into the 'modules' array.
            for (int i = 0; i < modules.Length; ++i)
            {
                int value = reader.ReadInt32();
                if (ItemLoader.GetItem(value) != null)
                {
                    modules[i] = (ModuleBase)ItemLoader.GetItem(value);
                }
            }
        }