setName() public method

public setName ( string name ) : void
name string
return void
Esempio n. 1
0
        public void loadGODB(string path)
        {
            // This is just an example of loading CSV
            //return dataTable;
            Output.Write("Loading GameObjects ..");
            ArrayList goDB      = loadCSV(path, ',');
            int       linecount = 0;

            foreach (string[] data in goDB)
            {
                //Output.WriteLine("Show Colums for Line : " + linecount.ToString() + " GOID:  " + data[1].ToString() + " Name " + data[0].ToString());

                GameObjectItem goItem = new GameObjectItem();
                goItem.setGOID(Convert.ToInt32(data[1]));
                goItem.setName(data[0]);
                GODB.Add(goItem);
                linecount++;
            }
        }
Esempio n. 2
0
        public void loadGODB(string path)
        {
            // This is just an example of loading CSV
            //return dataTable;
            Output.Write("Loading GameObjects ..");
            ArrayList goDB = loadCSV(path,',');
            int linecount = 1;
            foreach (string[] data in goDB)
            {

                //Output.WriteLine("Show Colums for Line : " + linecount.ToString() + " GOID:  " + data[1].ToString() + " Name " + data[0].ToString());

                GameObjectItem goItem = new GameObjectItem();
                goItem.setGOID(Convert.ToInt32(data[1].ToString()));
                goItem.setName(data[0].ToString());
                this.GODB.Add(goItem);
                linecount++;
            }
        }