Пример #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);
            }
        }
Пример #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);
            }
        }