mirror of
https://github.com/zeldaret/botw
synced 2026-08-18 05:18:13 -04:00
ksys/phys: Add some prerequisites for ContactInfoTable
This commit is contained in:
@@ -12,6 +12,17 @@ u32 makeContactLayerMask(ContactLayer layer) {
|
||||
return 1 << (layer - ContactLayer::SensorObject);
|
||||
}
|
||||
|
||||
u32 getContactLayerBase(ContactLayerType type) {
|
||||
if (type == ContactLayerType::Entity)
|
||||
return ContactLayer::EntityObject;
|
||||
return ContactLayer::SensorObject;
|
||||
}
|
||||
|
||||
u32 getContactLayerBaseRelativeValue(ContactLayer layer) {
|
||||
return layer - (layer < ContactLayer::SensorObject ? ContactLayer::EntityObject :
|
||||
ContactLayer::SensorObject);
|
||||
}
|
||||
|
||||
const char* contactLayerToText(ContactLayer layer) {
|
||||
return layer.text();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user