Revision: | 1114 |
Committed: | Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen |
File size: | 511 byte(s) |
Log Message: | Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years. |
# | Content |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Xml; |
4 | |
5 | namespace Oni.Level |
6 | { |
7 | partial class LevelImporter |
8 | { |
9 | private static IEnumerable<ScriptCharacter> ReadCharacters(XmlReader xml, string basePath) |
10 | { |
11 | if (xml.SkipEmpty()) |
12 | yield break; |
13 | |
14 | xml.ReadStartElement(); |
15 | |
16 | while (xml.IsStartElement()) |
17 | yield return ScriptCharacter.Read(xml); |
18 | |
19 | xml.ReadEndElement(); |
20 | } |
21 | } |
22 | } |