Exemplo n.º 1
0
        public ObjectTool()
        {
            types = new List <EntityType>();


            ConfuseReader  rdr  = new ConfuseReader();
            String         file = System.IO.File.ReadAllText(Program.Datapath + "/objecttypes.conf");
            ConfuseSection sect = rdr.Parse(file);

            foreach (ConfuseSection walltype in sect.subsections)
            {
                if (walltype.name != "objecttype")
                {
                    continue;
                }

                ObjectEntityType et = new ObjectEntityType(walltype.get_string("name", ""));
                if (et.Name == "")
                {
                    continue;
                }

                types.Add(et);
            }
        }
Exemplo n.º 2
0
        public ObjectTool()
        {
            types = new List<EntityType>();

            ConfuseReader rdr = new ConfuseReader();
            String file = System.IO.File.ReadAllText(Program.Datapath + "/objecttypes.conf");
            ConfuseSection sect = rdr.Parse(file);

            foreach (ConfuseSection walltype in sect.subsections) {
                if (walltype.name != "objecttype") continue;

                ObjectEntityType et = new ObjectEntityType(walltype.get_string("name", ""));
                if (et.Name == "") continue;

                types.Add(et);
            }
        }