pub unsafe extern "C" fn b2CreateWorldFromSnapshot(
image: *const u8,
size: c_int,
workerCount: c_int,
) -> b2WorldIdExpand description
Create a new world from a snapshot image. Use this to load a saved world when there is no existing world to restore into. The new world gets a fresh slot and id, so ids held from the origin world will not match it. Host wiring is reset to defaults. @param image A snapshot image produced by b2World_Snapshot @param size Size of image in bytes @param workerCount Worker count for the new world. 0 uses the serial single-worker fallback. @return The new world id, or b2_nullWorldId on failure.