Exemple #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");
    }
Exemple #2
0
    void CreateinstalledOnjectPrototypes()
    {
        InstalledObjectPrototypes = new Dictionary <string, InstalledObject>();

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

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

        InstalledObjectPrototypes.Add("Wall", WallPrototype);
    }
Exemple #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)
                                      );
    }
Exemple #5
0
    void CreateInstalledObjectPrototypes()
    {
        installedObjectPrototypes = new Dictionary <string, InstalledObject>();

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