37 bool HasAmbLight()
const {
38 return ref().ambLightName != 0;
41 ResName GetAmbLightResName()
const {
44 if (r.ambLightName != 0) {
45 return NW4R_G3D_OFS_TO_RESNAME(&r, r.ambLightName);
51 ulong GetAmbLightID()
const {
52 return ref().ambLightId;
55 ulong GetNumLight()
const {
56 return ref().numLight;
59 bool IsAmbLightBound()
const {
60 return !HasAmbLight() || GetAmbLightID() != ResLightSetData::INVALID_ID;
63 ResName GetLightResName(ulong idx)
const {
66 const s32* pNames = r.lightNames;
67 return NW4R_G3D_OFS_TO_RESNAME(pNames, pNames[idx]);