2 using System.Collections.Generic;
11 [Save]
public List<Template> Templates {
get;
private set; }
12 [Save]
public List<LevelObject> Objects {
get;
private set; }
16 Templates =
new List<Template>();
17 Objects =
new List<LevelObject>();
20 private int GetTemplateIndex(
Template template )
22 int index = Templates.IndexOf(
template );
23 if ( index >= 0 )
return index;
25 Templates.Add(
template );
26 return Templates.Count - 1;
32 Objects.Add( newObj );
38 Objects.Remove( obj );
void RemoveObject(LevelObject obj)
LevelObject CreateObject(Template t)