Files
fs2open.github.com/code/scripting/api/objs/player.h
T
asarium ad1ede7b74 Add new options system
This is a system for storing arbitrary data in the config file and then
easily retrieving it later on. This has full Lua support for exposing
the available options in a custom UI and changing the values of the
options. This ported some of the existing command line options over to
the new system which is opt-in for the moment by using a mod_table flag.
2019-03-02 14:02:21 +01:00

48 lines
727 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);
player_h(const player_h&) = delete;
player_h& operator=(const player_h&) = delete;
player_h(player_h&&) noexcept;
player_h& operator=(player_h&&) noexcept;
~player_h();
bool isValid() const;
player* get();
};
DECLARE_ADE_OBJ(l_Player, player_h);
class scoring_stats_h {
scoring_struct _score;
bool _valid = false;
public:
scoring_stats_h();
scoring_stats_h(const scoring_struct& stats);
bool isValid() const;
scoring_struct* get();
};
DECLARE_ADE_OBJ(l_ScoringStats, scoring_stats_h);
}
}