Exemplo n.º 1
0
    // 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");
    }
Exemplo n.º 2
0
    void CreateinstalledOnjectPrototypes()
    {
        InstalledObjectPrototypes = new Dictionary <string, InstalledObject>();

        InstalledObjectPrototypes.Add("Wall", InstalledObject.CreatePrototype(
                                          "Wall",
                                          0, // Impassable
                                          1, //width
                                          1  //Height
                                          ));
    }
Exemplo n.º 3
0
    void CreateInstalledObjectPrototypesDictionary()
    {
        InstalledObjectPrototypes = new Dictionary <string, InstalledObject>();

        InstalledObject WallPrototype = InstalledObject.CreatePrototype(
            "Wall",
            0,
            1,
            1);

        InstalledObjectPrototypes.Add("Wall", WallPrototype);
    }
Exemplo n.º 4
0
    void CreateInstalledObjectPrototypes()
    {
        installedObjectPrototypes = new Dictionary <string, InstalledObject>();

        InstalledObject wallPrototype = InstalledObject.CreatePrototype(
            "Wall",
            0,
            1,
            1);

        installedObjectPrototypes.Add("Wall",
                                      InstalledObject.CreatePrototype(
                                          "Wall",
                                          0,
                                          1,
                                          1)
                                      );
    }
Exemplo n.º 5
0
    void CreateInstalledObjectPrototypes()
    {
        installedObjectPrototypes = new Dictionary <string, InstalledObject>();

        installedObjectPrototypes.Add("SeaWall", InstalledObject.CreatePrototype("SeaWall", 0, 1, 1, true));
    }
Exemplo n.º 6
0
 private void CreateInstalledObjectPrototypes()
 {
     installedObjectPrototypes.Add("Wall", InstalledObject.CreatePrototype("Wall", 0f, 1, 1));
 }
Exemplo n.º 7
0
 void CreateInstalledObjectPrototypes()
 {
     installedObjectPrototypes = new Dictionary <InstalledObjectType, InstalledObject>();
     installedObjectPrototypes.Add(InstalledObjectType.Wall, InstalledObject.CreatePrototype(
                                       InstalledObjectType.Wall, 0, true, width: 1, height: 1));
 }