Skip to main content

get_chain_index

Function get_chain_index 

Source
pub fn get_chain_index(world: &World, chain_id: ChainId) -> i32
Expand description

Validate a ChainId and return the raw chain index. (static b2GetChainShape — C returns a pointer; Rust returns the index into world.chain_shapes)