Axiom.Components.Paging.PageWorld.Save C# (CSharp) Method

Save() public method

Save world data to a serialiser
public Save ( StreamSerializer stream ) : void
stream Axiom.Serialization.StreamSerializer
return void
        public void Save(StreamSerializer stream)
        {
            stream.WriteChunkBegin(CHUNK_ID, CHUNK_VERSION);

            //name
            stream.Write(mName);
            //sections
            foreach (PagedWorldSection section in mSections.Values)
                section.Save(stream);

            stream.WriteChunkEnd(CHUNK_ID);
        }
        /// <summary>

Same methods

PageWorld::Save ( Stream stream ) : void
PageWorld::Save ( string fileName ) : void

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="name"></param>
 public void SaveWorld(PageWorld world, Stream stream)
 {
     world.Save(stream);
 }
All Usage Examples Of Axiom.Components.Paging.PageWorld::Save