示例#1
0
        private void readBinaryObjects(ArkArchive archive)
        {
            var objectCount = archive.GetInt();

            for (int i = 0; i <= objectCount - 1; i++)
            {
                var go = new GameObject(archive);
                go.ObjectId = i;
                _objects.Add(go);
            }

            archive.SetNameTable(_nameTable, 0, true);
            for (int n = 0; n <= objectCount - 1; n++)
            {
                var go = _objects[n];
                _objects[n].loadProperties(archive, (n < _objects.Count - 1) ? _objects[n + 1] : null, 0);
            }
        }