// Internal Functions // TODO: Set this up to read from an XML file (or some other data file) void CreateInstalledObjectPrototypes() { installedObjectPrototypes = new Dictionary <string, InstalledObject> (); //Temporary code for figuring out how to structure everything InstalledObject treesPrototype = InstalledObject.CreatePrototype("Trees", 0, 1, 1); installedObjectPrototypes.Add("Trees", treesPrototype); Debug.Log("InstalledObjectPrototype dictionary populated"); }
void CreateinstalledOnjectPrototypes() { InstalledObjectPrototypes = new Dictionary <string, InstalledObject>(); InstalledObjectPrototypes.Add("Wall", InstalledObject.CreatePrototype( "Wall", 0, // Impassable 1, //width 1 //Height )); }
void CreateInstalledObjectPrototypesDictionary() { InstalledObjectPrototypes = new Dictionary <string, InstalledObject>(); InstalledObject WallPrototype = InstalledObject.CreatePrototype( "Wall", 0, 1, 1); InstalledObjectPrototypes.Add("Wall", WallPrototype); }
void CreateInstalledObjectPrototypes() { installedObjectPrototypes = new Dictionary <string, InstalledObject>(); InstalledObject wallPrototype = InstalledObject.CreatePrototype( "Wall", 0, 1, 1); installedObjectPrototypes.Add("Wall", InstalledObject.CreatePrototype( "Wall", 0, 1, 1) ); }
void CreateInstalledObjectPrototypes() { installedObjectPrototypes = new Dictionary <string, InstalledObject>(); installedObjectPrototypes.Add("SeaWall", InstalledObject.CreatePrototype("SeaWall", 0, 1, 1, true)); }
private void CreateInstalledObjectPrototypes() { installedObjectPrototypes.Add("Wall", InstalledObject.CreatePrototype("Wall", 0f, 1, 1)); }
void CreateInstalledObjectPrototypes() { installedObjectPrototypes = new Dictionary <InstalledObjectType, InstalledObject>(); installedObjectPrototypes.Add(InstalledObjectType.Wall, InstalledObject.CreatePrototype( InstalledObjectType.Wall, 0, true, width: 1, height: 1)); }