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
43
44
use Debug;
use Hash;
/// Trait representing a tileset identifier in a JRPG engine.
///
/// A tileset defines a collection of graphical tiles used to render
/// the overworld or dungeon maps. Implementations should be lightweight
/// (typically an enum or numeric ID) since they are copied frequently.
/// Provider trait that supplies tileset data to the engine.
///
/// Implementations of this trait are responsible for loading and
/// serving tileset metadata, block data, and tile dimensions.
/// The engine queries this provider when it needs to render a
/// map or resolve tile properties.