42 inline const char *GetString()
const {
43 return detail::ConvertOffsToPtr<const char>(
this, datOffs);
46 inline float GetFloat()
const {
47 return *detail::ConvertOffsToPtr<float>(
this, datOffs);
50 inline int GetInt()
const {
51 return *detail::ConvertOffsToPtr<int>(
this, datOffs);
54 inline const char *GetName()
const {
55 return nameOffs != 0 ? detail::ConvertOffsToPtr<const char>(
this, nameOffs) :
nullptr;
58 inline ExtUserDataType GetType()
const {
59 return (ExtUserDataType)type;
155 u8 GetTexMapNum()
const {
156 return detail::GetBits(bits, 0, 4);
158 u8 GetTexSRTNum()
const {
159 return detail::GetBits(bits, 4, 4);
161 u8 GetTexCoordGenNum()
const {
162 return detail::GetBits(bits, 8, 4);
164 bool HasTevSwapTable()
const {
165 return detail::TestBit(bits, 12);
167 u8 GetIndTexSRTNum()
const {
168 return detail::GetBits(bits, 13, 2);
170 u8 GetIndTexStageNum()
const {
171 return detail::GetBits(bits, 15, 3);
173 u8 GetTevStageNum()
const {
174 return detail::GetBits(bits, 18, 5);
176 bool HasAlphaCompare()
const {
177 return detail::TestBit(bits, 23);
179 bool HasBlendMode()
const {
180 return detail::TestBit(bits, 24);
182 u8 GetChanCtrlNum()
const {
183 return detail::GetBits(bits, 25, 1);
185 u8 GetMatColNum()
const {
186 return detail::GetBits(bits, 27, 1);