Ejemplo n.º 1
0
        public static void ReadIde(string path)
        {
            var file = new ItemFile <Definition>(ArchiveManager.GetCaseSensitiveFilePath(Path.GetFileName(path)));

            foreach (var obj in file.GetItems <Definition>().OfType <IObjectDefinition>())
            {
                _definitions.Add(obj.Id, obj);
            }
        }
Ejemplo n.º 2
0
        public static void ReadIde(string path)
        {
            var file = new ItemFile <Definition>(path);

            foreach (var obj in file.GetItems <Definition>().OfType <IObjectDefinition>())
            {
                if (_definitions.ContainsKey(obj.Id))
                {
                    Debug.LogWarning($"Definition with id {obj.Id} already exists, skipping it");
                }
                else
                {
                    _definitions.Add(obj.Id, obj);
                }
            }
        }