예제 #1
0
 public ExistingWorldObjectArchetypeViewModel(WorldEditorWorldViewModel parent,
                                      IArchetypeBasedWorldEditorTypeMetaData metaData,
                                      IArchetypeBasedWorldEditorTypeDefinition typeDefinition)
 {
     this._metaData = metaData;
     this._typeDefinition = typeDefinition;
 }
예제 #2
0
        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);
            });
        }
예제 #3
0
        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);
            });
        }