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

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

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

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

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