File: shipwepselect.h

package info (click to toggle)
freespace2 24.2.0%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 43,716 kB
  • sloc: cpp: 595,001; ansic: 21,741; python: 1,174; sh: 457; makefile: 248; xml: 181
file content (56 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once

#include "mission/missionbriefcommon.h"
#include "missionui/missionshipchoice.h"
#include "missionui/missionweaponchoice.h"
#include "scripting/ade_api.h"

namespace scripting {
namespace api {

struct ss_wing_info_h {
	int ss_wing;
	ss_wing_info_h();
	explicit ss_wing_info_h(int l_wing);
	bool isValid() const;
	ss_wing_info* getWing() const;
	int getWingIndex() const;
};

struct ss_slot_info_h {
	ss_slot_info* ss_slots;
	int ss_idx;
	int ss_wing; //pass in the wing index so we can get the callsign later. I hate you Volition.
	ss_slot_info_h();
	explicit ss_slot_info_h(ss_slot_info* l_slots, int l_idx, int l_wing);
	bool isValid() const;
	ss_slot_info* getSlot() const;
	int getSlotIndex() const;
	int getWingIndex() const;
};

struct wss_unit_wep_h {
	int ss_unit;
	wss_unit_wep_h();
	explicit wss_unit_wep_h(int l_unit);
	bool isValid() const;
	wss_unit* getBank() const;
};

struct wss_unit_count_h {
	int ss_unit;
	wss_unit_count_h();
	explicit wss_unit_count_h(int l_unit);
	bool isValid() const;
	wss_unit* getBank() const;
};

DECLARE_ADE_OBJ(l_Loadout_Wing, ss_wing_info_h);
DECLARE_ADE_OBJ(l_Loadout_Wing_Slot, ss_slot_info_h);

DECLARE_ADE_OBJ(l_Loadout_Ship, int);
DECLARE_ADE_OBJ(l_Loadout_Weapon, wss_unit_wep_h);
DECLARE_ADE_OBJ(l_Loadout_Amount, wss_unit_count_h);

} // namespace api
} // namespace scripting