Ocean Serialization - Saving Custom Data Made Easy
Ocean Serialization - Saving Custom Data Made Easy
Ocean Serialization - Saving Custom Data Made Easy
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Add Objects to <strong>Data</strong> Source to Save<br />
public class XYZObject: IIdentifiable<br />
{<br />
public XYZObject(string name, Point3 position)<br />
{<br />
_name = name;<br />
_position = position;<br />
}<br />
}<br />
...<br />
// adding this to datasource<br />
I<strong>Data</strong>SourceManager dsm = <strong>Data</strong>Manager.<strong>Data</strong>SourceManager;<br />
string <strong>Data</strong>SourceId = XYZ<strong>Data</strong>SourceFactory.<strong>Data</strong>SourceId;<br />
StructuredArchive<strong>Data</strong>Source ds = dsm.GetSource(<strong>Data</strong>SourceId);<br />
_droid = ds.GenerateDroid();<br />
ds.AddItem(_droid, this);<br />
Adding object to data source on<br />
construction