Last change
on this file since 1194 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
511 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.