Skip to content
🌋️
Alchemy
Theme: Weyard
Theme: Modern
Mode: Auto
Mode: Light
Mode: Dark
Alchemy
Source
Reference
Loading...
Searching...
No Matches
metadata_get_record.c
Go to the documentation of this file.
1
#include "
unit/system/resource/metadata_get_record.h
"
2
#include "
metadata_lookup.h
"
3
4
extern
struct
AnimationMetadata
gCharacter_DescriptorTable
[];
5
6
/// Looks up animation metadata using the descriptor ID in the low twelve bits.
7
struct
AnimationMetadata
*
Resource_GetMetadataRecord
(
u32
descriptorId) {
8
return
&
gCharacter_DescriptorTable
[descriptorId & 0xfff];
9
}
Resource_GetMetadataRecord
struct AnimationMetadata * Resource_GetMetadataRecord(u32 descriptorId)
Looks up animation metadata using the descriptor ID in the low twelve bits.
Definition
metadata_get_record.c:7
gCharacter_DescriptorTable
struct AnimationMetadata gCharacter_DescriptorTable[]
metadata_get_record.h
metadata_lookup.h
Animation metadata and its lookup by resource.
AnimationMetadata
An animation's metadata: the sprite's size, scale and offsets, how its frames are drawn and decoded,...
Definition
metadata_lookup.h:14
u32
unsigned int u32
Definition
types.h:15
src
system
resource
metadata_get_record.c