/// <summary> /// Called when deserializing /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected HeightFieldGeneratorShape(SerializationInfo info, StreamingContext context) : base(info, context) { _vBoxSize = (Vector3F)info.GetValue("_vBoxSize", typeof(Vector3F)); _heightmapfile = info.GetString("_heightmapfile"); _heightmapsize = (Heightmapsize_e)info.GetValue("_heightmapsize", typeof(Heightmapsize_e)); _basetexturefile = info.GetString("_basetexturefile"); _basetextureLightmapresolution = (Lightmapresolution_e)info.GetValue("_basetextureLightmapresolution", typeof(Lightmapresolution_e)); }
/// <summary> /// Called when deserializing /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected HeightFieldGeneratorShape(SerializationInfo info, StreamingContext context) : base(info, context) { _vBoxSize = (Vector3F) info.GetValue( "_vBoxSize", typeof(Vector3F) ); _heightmapfile = info.GetString("_heightmapfile"); _heightmapsize = (Heightmapsize_e)info.GetValue( "_heightmapsize", typeof(Heightmapsize_e) ); _basetexturefile = info.GetString("_basetexturefile"); _basetextureLightmapresolution = (Lightmapresolution_e)info.GetValue("_basetextureLightmapresolution", typeof(Lightmapresolution_e) ); }