Files
fs2open.github.com/code/scripting/api/objs/player.h
T
asarium a815c0247c Add scripting features for barracks libRocket UI
This mostly adds the scripting features required for accessing the
various internal variables required for the barracks screen.
2018-09-27 11:45:09 +02:00

43 lines
575 B
C++

#pragma once
#include "playerman/player.h"
#include "scripting/ade_api.h"
namespace scripting {
namespace api {
class player_h {
player *_plr = nullptr;
public:
player_h();
player_h(const player& plr);
bool isValid() const;
player* get();
void cleanup();
};
DECLARE_ADE_OBJ(l_Player, player_h);
class scoring_stats_h {
scoring_struct *_score = nullptr;
public:
scoring_stats_h();
scoring_stats_h(const scoring_struct& stats);
bool isValid() const;
scoring_struct* get();
void cleanup();
};
DECLARE_ADE_OBJ(l_ScoringStats, scoring_stats_h);
}
}