Files
fs2open.github.com/code/scripting/api/objs/techroom.h
T
MjnMixael ff55a39dd4 Scripting functions required for SCPUI conversion of all four Tech Room UIs (#4591)
* Documentation (+6 squashed commit)

Squashed commit:

[ea8550b54] Resolve errors

[9ab0a576d] Add way to count number of elements in the arrays

[eb74146cc] Correct this boolean check

[60fbc6008] Missed one

[78e65a4b7] Avoid naming collision

[4ea5ddead] Clean unneeded log print and compare like variables

* Adding simulator room here seems like a pretty safe option

* Scpui API to access to build the tech room cutscene list and a few methods to help playing the cutscene and return to the menu accurately

* Scpui API access for credits related data

* # This is a combination of 7 commits.

Clean unneeded log print and compare like variables

Avoid naming collision

Missed one

Correct this boolean check

Add way to count number of elements in the arrays

Resolve errors

Documentation

* Address feedback

* Address feedback

* Add virtvar isCampaignMission
2022-09-14 16:01:34 +09:00

32 lines
642 B
C++

#pragma once
#include "menuui/readyroom.h"
#include "cutscene/cutscenes.h"
#include "scripting/ade_api.h"
namespace scripting {
namespace api {
struct sim_mission_h {
int missionIdx;
bool isCMission;
sim_mission_h();
explicit sim_mission_h(int index, bool cmission);
bool IsValid() const;
sim_mission* getStage() const;
};
struct cutscene_info_h {
int cutscene;
cutscene_info_h();
explicit cutscene_info_h(int scene);
bool IsValid() const;
cutscene_info* getStage() const;
};
DECLARE_ADE_OBJ(l_TechRoomMission, sim_mission_h);
DECLARE_ADE_OBJ(l_TechRoomCutscene, cutscene_info_h);
} // namespace api
} // namespace scripting