mirror of
https://github.com/zeldaret/st
synced 2026-05-23 15:01:41 -04:00
24d9e00c80
* add missing scratch link * ActorUnk_ov000_020a8bb0_a4_00 -> UnkSystem4 * match mapobj switch step * SWST -> SwitchStep * dsd format * fix playerget regression * fix fake match * BLCM -> MiniBlocks * match mapobj miniblocks * minor improvement * fix regressions
17 lines
550 B
C++
17 lines
550 B
C++
#pragma once
|
|
|
|
#define GET_PROFILE(T) (&ProfileInstance<T>::sProfile)
|
|
#define GET_PROFILE_20(T) (&ProfileInstance<T>::sProfile.mUnk_20)
|
|
#define GET_PROFILE_20_50(T) (ProfileInstance<T>::sProfile.mUnk_20.mUnk_50)
|
|
#define GET_PROFILE_D4(T) (&ProfileInstance<T>::sProfile.mUnk_D4)
|
|
|
|
#define DECL_PROFILE(T) \
|
|
T ProfileInstance<T>::sProfile; \
|
|
T *T::GetProfile() { \
|
|
return &ProfileInstance<T>::sProfile; \
|
|
}
|
|
|
|
template <typename T> struct ProfileInstance {
|
|
static T sProfile;
|
|
};
|