source: 2014/24/EemeliK/Zombieland/Jypeli/LevelEditor/Template.cs @ 5974

Revision 5974, 787 bytes checked in by empaheik, 4 years ago (diff)
Line 
1using System;
2using System.Diagnostics;
3using System.Collections.Generic;
4
5namespace Jypeli.LevelEditor
6{
7    [Save]
8    public class Template
9    {
10        [Save] public string Name { get; set; }
11        [Save] public PropertySet Properties { get; set; }
12
13        public Template( string name )
14        {
15            this.Name = name;
16            this.Properties = new PropertySet();
17            this.Properties.SetValue( "Type", typeof( GameObject ) );
18            this.Properties.SetValue( "ShapeString", "Triangle" );
19            this.Properties.SetValue( "Size", new Vector( 10, 10 ) );
20            this.Properties.SetValue( "Color", Color.LightGreen );
21        }
22
23        public Template()
24            : this( "Default" )
25        {
26        }
27    }
28}
Note: See TracBrowser for help on using the repository browser.