Path class augs

adds the following behaviours: onPostAdd, send an updatePath event so that paths created post-pathOnMissionLoadDone command can register with clients (like say when they are loaded from a submis)
for editing tool purposes, allow Path::SetTransform to impact child objects so that pre-existing ones can be copy/pasted without the markers ending up in the same spot, or so that you can shift the entire path around and have those move in a relative manner
This commit is contained in:
AzaezelX 2025-02-24 17:10:23 -06:00
parent 0ebb2e9115
commit db42149fb5
2 changed files with 45 additions and 0 deletions

View file

@ -76,12 +76,14 @@ class Path : public GameBase
~Path();
void addObject(SimObject*) override;
void onPostAdd() override;
void removeObject(SimObject*) override;
void sortMarkers();
void updatePath();
bool isLooping() { return mIsLooping; }
U32 getPathIndex() const;
void setTransform(const MatrixF& mat) override;
DECLARE_CONOBJECT(Path);
DECLARE_CATEGORY("Cinematic");