public AbstractLmpTreeViewModel(World world, TreeViewItemViewModel parent, LmpFile lmpFile, string entryName)
     : base(parent, true)
 {
     _lmpFile = lmpFile;
     _name = entryName;
     _world = world;
 }
        public void LoadFile(string file)
        {
            // Clear log text
            LogText = null;

            var folderPath = Path.GetDirectoryName(file);
            var engineVersion = App.Settings.Get<EngineVersion>("Core.EngineVersion", EngineVersion.DarkAlliance);
            _gobFile = file;

            _world = new World(engineVersion, folderPath,  Path.GetFileName(_gobFile));
            _worldTreeViewModel = new WorldTreeViewModel(_world);
            this.OnPropertyChanged("Children");
        }
 public GobTreeViewModel(World world, TreeViewItemViewModel parent)
     : base(parent, true)
 {
     _world = world;
 }
 public WorldTreeViewModel(World world)
     : base(null, true)
 {
     _world = world;
 }
 public WorldFileTreeViewModel(World world, TreeViewItemViewModel parent, LmpFile lmpFile, string entryName)
     : base(world, parent, lmpFile, entryName)
 {
 }
 public TextTreeViewModel(World world, TreeViewItemViewModel parent, string text)
     : base(parent, false)
 {
     _text = text;
 }
 public LmpTreeViewModel(World world, TreeViewItemViewModel parent, LmpFile lmpFile)
     : base(world, parent, lmpFile, lmpFile.Name)
 {
 }