Function get_map_info

Source
pub fn get_map_info(buffer: Uint8Array) -> Option<War3MapMetadata>
Expand description

Extracts map information from a War3 map file buffer.

§Arguments

  • buffer - A JavaScript Uint8Array containing the map file data

§Returns

  • Option<War3MapMetadata> - The parsed map metadata if successful, including:
    • Map information (w3i)
    • Image resources