mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 15:29:48 -10:00
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.
24 lines
454 B
C++
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
|