1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Script file handling for Gen 4 Pokémon games.
//!
//! This module provides functionality for working with script files, including:
//!
//! - **Script ID Resolution**: Resolve script IDs to their containing files and associated data
//! - **Global Script Table**: Map global script IDs to script files
//!
//! ## Script ID System
//!
//! Gen 4 games use two categories of scripts:
//!
//! - **Local Scripts**: Scripts that belong to a specific map's script file
//! - **Global Scripts**: Shared scripts looked up via [`GlobalScriptTable`]
//!
//! # Example
//!
//! ```rust,no_run
//! use uxie::script_file::{GlobalScriptTable, resolve_script_id};
//!
//! let table = GlobalScriptTable::platinum_hardcoded();
//! assert!(table.is_global_script(2500));
//! assert!(!table.is_global_script(100));
//!
//! // Look up which file contains script ID 2018
//! if let Some(entry) = table.lookup(2018) {
//! println!("Script file: {}", entry.script_file_id);
//! println!("Text archive: {}", entry.text_archive_id);
//! }
//! ```
pub use ;
pub use ;
pub use ScriptTable;