Files
Goober5000 2a6017cb73 enable mission goals for scripted sexps
Add "goal" as a type recognized by scripted sexps.  Also add `mn.Goals` as a collection to complement `mn.Events` and move the goal type to goal.cpp and goal.h to match event.cpp and event.h.  The new `mn.Goals` collection contains the same data as the existing `Objectives` collection in the briefing UI library, so the latter could be deprecated.
2025-01-30 22:09:29 -05:00

24 lines
454 B
C++

#pragma once
#include "mission/missionbriefcommon.h"
#include "mission/missiongoals.h"
#include "scripting/ade_api.h"
namespace scripting {
namespace api {
struct brief_stage_h {
int br_brief, br_stage;
brief_stage_h();
explicit brief_stage_h(int brief, int stage);
bool isValid() const;
brief_stage* getStage() const;
};
DECLARE_ADE_OBJ(l_BriefStage, brief_stage_h);
DECLARE_ADE_OBJ(l_Brief, int);
} // namespace api
} // namespace scripting