public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("Version", Version); info.AddValue("Visgroups", Visgroups.ToArray()); info.AddValue("Cameras", Cameras.ToArray()); info.AddValue("ActiveCameraID", Cameras.IndexOf(ActiveCamera)); info.AddValue("WorldSpawn", WorldSpawn); info.AddValue("IDGenerator", IDGenerator); }
public void CameraToArray() { CameraArray = Cameras.ToArray(); }