Пример #1
0
    void ReadXml_Immovables(XmlReader reader)
    {
        Debug.Log("ReadXml_Immovables");

        if (reader.ReadToDescendant("Immovable"))
        {
            do
            {
                int x = int.Parse(reader.GetAttribute("X"));
                int y = int.Parse(reader.GetAttribute("Y"));

                Immovable imvb = PlaceImmovable(reader.GetAttribute("ObjectType"), tiles[x, y]);
                imvb.ReadXml(reader);
            } while(reader.ReadToNextSibling("Immovable"));
        }
    }