Inheritance: IContentTemplate
Exemple #1
0
        public Monster(MonsterTemplate monsterTemplate)
            : base(monsterTemplate.Sprite)
        {
            // Copy everything we need to into the object
            Name = monsterTemplate.Name;

            MonsterTemplateId = monsterTemplate.Id;
        }
        public MonsterEditorForm(MonsterTemplate template)
        {
            InitializeComponent();

            SetContentTemplate(template);

            textNotes.DataBindings.Add("Text", ContentTemplate, "Notes");
            textName.DataBindings.Add("Text", ContentTemplate, "Name");
            textDescription.DataBindings.Add("Text", ContentTemplate, "Description");
            numericLevel.DataBindings.Add("Value", ContentTemplate, "Level");
        }