public NewWorldObjectArchetypeViewModel(WorldEditorWorldViewModel parent, String name, WorldObjectArchetypeData data, String archetypeKey, IArchetypeBasedWorldEditorTypeMetaData metaData, IArchetypeBasedWorldEditorTypeDefinition typeDefinition) { this.Name = name; this._data = data; this._metaData = metaData; this._typeDefinition = typeDefinition; this._archetypeKey = archetypeKey; this.Command = new DelegateCommand(() => { parent.CreateWorldObject(this); }); }
public WorldObjectTypeViewModel(WorldEditorWorldViewModel parent, IWorldEditorTypeMetaData metaData, IWorldEditorTypeDefinition typeDefinition) { this.Name = typeDefinition.Name; this.TypeDefinition = typeDefinition; this.MetaData = metaData; this.Command = new DelegateCommand(() => { parent.CreateWorldObject(this); }); }