mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 04:31:34 -10:00
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.
48 lines
727 B
C++
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);
|
|
|
|
}
|
|
}
|
|
|
|
|