Пример #1
0
        public void ImportContent(PropertyStream stream)
        {
            PropertyStream child = stream.GetChild(HashHousehold);

            this.Household = new Household();
            this.Household.ImportContent(child);

            int count = stream.GetS32(HashInventoryCount);

            this.Inventories = stream.GetS32s(HashInventoryKeyIndices);

            if (this.Inventories.Length != count)
            {
                throw new Exception("count mismatch");
            }
        }