public bool Load(StreamSerializer stream)
{
if (stream.ReadChunkBegin(CHUNK_ID, CHUNK_VERSION, "PageWorld") == null)
return false;
//name
stream.Read(out mName);
//sections
while (stream.NextChunkId == PagedWorldSection.CHUNK_ID)
{
PagedWorldSection sec = new PagedWorldSection(this);
bool sectionOk = sec.Load(stream);
if (sectionOk)
mSections.Add(sec.Name, sec);
else
{
sec = null;
break;
}
}
stream.ReadChunkEnd(CHUNK_ID);
return true;
}
/// <summary>