Skip to content

Commit 6a5aaa8

Browse files
committed
Add missing public getters and setters to various classes
1 parent f2c7161 commit 6a5aaa8

16 files changed

Lines changed: 144 additions & 0 deletions

core/PRP/Audio/plEAXListenerMod.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ class HSPLASMA_EXPORT plEAXReverbEffect : public plEAXEffect
7575
protected:
7676
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
7777
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
78+
79+
public:
80+
plKey getSoftRegion() const { return fSoftRegion; }
81+
const EAXREVERBPROPERTIES& getListenerProps() const { return fListenerProps; }
82+
EAXREVERBPROPERTIES& getListenerProps() { return fListenerProps; }
83+
const std::vector<Aperture>& getApertures() const { return fApertures; }
84+
std::vector<Aperture>& getApertures() { return fApertures; }
85+
86+
void setSoftRegion(plKey region) { fSoftRegion = std::move(region); }
7887
};
7988

8089
#endif

core/PRP/Avatar/plArmatureEffects.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class HSPLASMA_EXPORT plArmatureEffectFootSound : public plArmatureEffect
3939
protected:
4040
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
4141
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
42+
43+
public:
44+
const std::vector<plKey>& getMods() const { return fMods; }
45+
std::vector<plKey>& getMods() { return fMods; }
4246
};
4347

4448

@@ -67,6 +71,10 @@ class HSPLASMA_EXPORT plArmatureEffectsMgr : public hsKeyedObject
6771
protected:
6872
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
6973
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
74+
75+
public:
76+
const std::vector<plKey>& getEffects() const { return fEffects; }
77+
std::vector<plKey>& getEffects() { return fEffects; }
7078
};
7179

7280
#endif

core/PRP/Avatar/plArmatureMod.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ class HSPLASMA_EXPORT plArmatureModBase : public plAGMasterMod
4343
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
4444

4545
public:
46+
const std::vector<plKey>& getMeshes() const { return fMeshKeys; }
47+
std::vector<plKey>& getMeshes() { return fMeshKeys; }
48+
const std::vector<std::vector<plKey>>& getUnusedBones() const { return fUnusedBones; }
49+
std::vector<std::vector<plKey>>& getUnusedBones() { return fUnusedBones; }
50+
const std::vector<plArmatureBrain*>& getBrains() const { return fBrains; }
51+
std::vector<plArmatureBrain*>& getBrains() { return fBrains; }
52+
plKey getDetector() const { return fDetector; }
53+
4654
void clearBrains();
55+
void setDetector(plKey detector) { fDetector = std::move(detector); }
4756
};
4857

4958

@@ -79,6 +88,33 @@ class HSPLASMA_EXPORT plArmatureMod : public plArmatureModBase
7988
protected:
8089
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
8190
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
91+
92+
public:
93+
plKey getDefaultMesh() const { return fDefaultMesh; }
94+
ST::string getRootName() const { return fRootName; }
95+
plKey getClothingOutfit() const { return fClothingOutfit; }
96+
int getBodyType() const { return fBodyType; }
97+
plKey getEffects() const { return fEffects; }
98+
hsVector3 getMins() const { return fMins; }
99+
hsVector3 getMaxs() const { return fMaxs; }
100+
float getPhysHeight() const { return fPhysHeight; }
101+
float getPhysWidth() const { return fPhysWidth; }
102+
ST::string getFootstepAge() const { return fFootstepAge; }
103+
ST::string getFootstepPage() const { return fFootstepPage; }
104+
ST::string getFootstepType() const { return fFootstepType; }
105+
106+
void setDefaultMesh(plKey defaultMesh) { fDefaultMesh = std::move(defaultMesh); }
107+
void setRootName(ST::string rootName) { fRootName = std::move(rootName); }
108+
void setClothingOutfit(plKey clothingOutfit) { fClothingOutfit = std::move(clothingOutfit); }
109+
void setBodyType(int bodyType) { fBodyType = bodyType; }
110+
void setEffects(plKey effects) { fEffects = std::move(effects); }
111+
void setMins(hsVector3 mins) { fMins = mins; }
112+
void setMaxs(hsVector3 maxs) { fMaxs = maxs; }
113+
void setPhysHeight(float physHeight) { fPhysHeight = physHeight; }
114+
void setPhysWidth(float physWidth) { fPhysWidth = physWidth; }
115+
void setFootstepAge(ST::string footstepAge) { fFootstepAge = std::move(footstepAge); }
116+
void setFootstepPage(ST::string footstepPage) { fFootstepPage = std::move(footstepPage); }
117+
void setFootstepType(ST::string footstepType) { fFootstepType = std::move(footstepType); }
82118
};
83119

84120

core/PRP/Avatar/plAvatarClothing.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ class HSPLASMA_EXPORT plClothingOutfit : public plSynchedObject
5353
protected:
5454
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
5555
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
56+
57+
public:
58+
unsigned char getGroup() const { return fGroup; }
59+
plKey getBase() const { return fBase; }
60+
plKey getTargetTexture() const { return fTargetTexture; }
61+
plKey getMaterial() const { return fMaterial; }
62+
63+
void setGroup(unsigned char group) { fGroup = group; }
64+
void setBase(plKey base) { fBase = std::move(base); }
65+
void setTargetTexture(plKey targetTexture) { fTargetTexture = std::move(targetTexture); }
66+
void setMaterial(plKey material) { fMaterial = std::move(material); }
5667
};
5768

5869

@@ -71,6 +82,15 @@ class HSPLASMA_EXPORT plClothingBase : public hsKeyedObject
7182
protected:
7283
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
7384
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
85+
86+
public:
87+
ST::string getName() const { return fName; }
88+
ST::string getLayoutName() const { return fLayoutName; }
89+
plKey getBaseTexture() const { return fBaseTexture; }
90+
91+
void setName(ST::string name) { fName = std::move(name); }
92+
void setLayoutName(ST::string layoutName) { fLayoutName = std::move(layoutName); }
93+
void setBaseTexture(plKey baseTexture) { fBaseTexture = std::move(baseTexture); }
7494
};
7595

7696
#endif

core/PRP/Geometry/plMorphArray.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class HSPLASMA_EXPORT plMorphArray
2929
void write(hsStream* S, plResManager* mgr);
3030
void prcWrite(pfPrcHelper* prc);
3131
void prcParse(const pfPrcTag* tag, plResManager* mgr);
32+
33+
const std::vector<plMorphDelta>& getDeltas() const { return fDeltas; }
34+
std::vector<plMorphDelta>& getDeltas() { return fDeltas; }
3235
};
3336

3437
#endif

core/PRP/Geometry/plMorphDataSet.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class HSPLASMA_EXPORT plMorphDataSet : public hsKeyedObject
3434
protected:
3535
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
3636
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
37+
38+
public:
39+
const std::vector<plMorphArray>& getMorphs() const { return fMorphs; }
40+
std::vector<plMorphArray>& getMorphs() { return fMorphs; }
3741
};
3842

3943
#endif

core/PRP/Geometry/plMorphDelta.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ class HSPLASMA_EXPORT plMorphDelta : public plCreatable
6464
protected:
6565
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
6666
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
67+
68+
public:
69+
const std::vector<plMorphSpan>& getSpans() const { return fSpans; }
70+
std::vector<plMorphSpan>& getSpans() { return fSpans; }
71+
float getWeight() const { return fWeight; }
72+
73+
void setWeight(float weight) { fWeight = weight; }
6774
};
6875

6976
#endif

core/PRP/Geometry/plMorphSequence.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class HSPLASMA_EXPORT plMorphSequence : public plSingleModifier
3636
protected:
3737
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
3838
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
39+
40+
public:
41+
const std::vector<plMorphArray>& getMorphs() const { return fMorphs; }
42+
std::vector<plMorphArray>& getMorphs() { return fMorphs; }
43+
const std::vector<plKey>& getSharedMeshes() const { return fSharedMeshes; }
44+
std::vector<plKey>& getSharedMeshes() { return fSharedMeshes; }
3945
};
4046

4147
#endif

core/PRP/Modifier/plAnimEventModifier.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ class HSPLASMA_EXPORT plAnimEventModifier : public plSingleModifier
4141
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
4242

4343
public:
44+
const std::vector<plKey>& getReceivers() const { return fReceivers; }
45+
std::vector<plKey>& getReceivers() { return fReceivers; }
46+
plMessage* getCallback() const { return fCallback; }
47+
bool isDisabled() const { return fDisabled; }
48+
4449
void setCallback(plMessage* callback);
50+
void setDisabled(bool disabled) { fDisabled = disabled; }
4551
};
4652

4753
#endif

core/PRP/Modifier/plGameMarkerModifier.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ class HSPLASMA_EXPORT plGameMarkerModifier : public plSingleModifier
3636
protected:
3737
void IPrcWrite(pfPrcHelper* prc) HS_OVERRIDE;
3838
void IPrcParse(const pfPrcTag* tag, plResManager* mgr) HS_OVERRIDE;
39+
40+
public:
41+
plKey getGreenAnimKey() const { return fGreenAnimKey; }
42+
plKey getRedAnimKey() const { return fRedAnimKey; }
43+
plKey getOpenAnimKey() const { return fOpenAnimKey; }
44+
plKey getBounceAnimKey() const { return fBounceAnimKey; }
45+
unsigned short getPlaceSoundIdx() const { return fPlaceSoundIdx; }
46+
unsigned short getHitSoundIdx() const { return fHitSoundIdx; }
47+
48+
void setGreenAnimKey(plKey greenAnimKey) { fGreenAnimKey = std::move(greenAnimKey); }
49+
void setRedAnimKey(plKey redAnimKey) { fRedAnimKey = std::move(redAnimKey); }
50+
void setOpenAnimKey(plKey openAnimKey) { fOpenAnimKey = std::move(openAnimKey); }
51+
void setBounceAnimKey(plKey bounceAnimKey) { fBounceAnimKey = std::move(bounceAnimKey); }
52+
void setPlaceSoundIdx(unsigned short placeSoundIdx) { fPlaceSoundIdx = placeSoundIdx; }
53+
void setHitSoundIdx(unsigned short hitSoundIdx) { fHitSoundIdx = hitSoundIdx; }
3954
};
4055

4156
#endif

0 commit comments

Comments
 (0)