// Copyright (c) 2021 The Lutino Projects
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

pub fn specifies_act(v: u32) -> bool { v >= 8 }

pub fn specifies_substitution_type(v: u32) -> bool { v >= 10 }

pub fn specifies_walls(v: u32) -> bool { v >= 4 }

pub fn specifies_floors(v: u32) -> bool { v >= 16 }

pub fn specifies_npcs(v: u32) -> bool { v >= 14 }

pub fn specifies_npc_actions(v: u32) -> bool { v >= 15 }

pub fn has_unknown1_bytes(v: u32) -> bool { v >= 9 && v <= 13 }

pub fn has_unknown2_bytes(v: u32) -> bool { v >= 18 }

pub fn has_standard_layers(v: u32) -> bool { v < 4 }

pub fn has_objects(v: u32) -> bool { v >= 3 }

pub fn has_substitution(v: u32) -> bool { v >= 12 }
