16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 01:19:19 +02:00

reformat: remove redundant 'inline' specifier

This commit is contained in:
jerrrrycho
2026-07-04 05:58:21 +02:00
parent b4b6686320
commit 6e4d000ddb
85 changed files with 877 additions and 988 deletions

View File

@@ -460,16 +460,16 @@ public:
// methods
// posts specified command for specified recipient into m_intercept_queue
void
push( command_data const &Command, uint32_t const Recipient );
push( command_data const &Command, uint32_t Recipient );
// retrieves oldest posted command for specified recipient, if any. returns: true on retrieval, false if there's nothing to retrieve
bool
pop( command_data &Command, uint32_t const Recipient );
pop( command_data &Command, uint32_t Recipient );
// generates active continuous commands
void
update();
// checks if given command must be scheduled on server
bool
is_network_target(const uint32_t Recipient);
is_network_target(uint32_t Recipient);
// pops commands from intercept queue
commands_map pop_intercept_queue();
@@ -485,7 +485,7 @@ private:
// contains intercepted commands to be read by application layer
commands_map m_intercept_queue;
void push_direct( command_data const &Command, uint32_t const Recipient );
void push_direct( command_data const &Command, uint32_t Recipient );
// hash operator for m_active_continuous
struct command_set_hash {
@@ -528,8 +528,8 @@ public:
// methods
// posts specified command for the specified recipient
void
post(user_command const Command, double const Param1, double const Param2,
int const Action, uint16_t Recipient, glm::vec3 Position = glm::vec3(0.0f) , const std::string *Payload = nullptr) const;
post(user_command Command, double Param1, double Param2,
int Action, uint16_t Recipient, glm::vec3 Position = glm::vec3(0.0f) , const std::string *Payload = nullptr) const;
private:
// types
// members

View File

@@ -24,9 +24,8 @@ public:
void
release();
void
on_move( double const Mousex, double const Mousey );
inline
user_command
on_move( double Mousex, double Mousey );
user_command
command() const {
return m_command; }
double
@@ -55,13 +54,13 @@ public:
bool
recall_bindings();
void
button( int const Button, int const Action );
button( int Button, int Action );
int
button( int const Button ) const;
button( int Button ) const;
void
move( double const Horizontal, double const Vertical );
move( double Horizontal, double Vertical );
void
scroll( double const Xoffset, double const Yoffset );
scroll( double Xoffset, double Yoffset );
void
poll();
user_command

View File

@@ -21,15 +21,13 @@ public:
bool
init();
void
position( double const Horizontal, double const Vertical );
inline
glm::dvec2
position( double Horizontal, double Vertical );
glm::dvec2
position() const {
return m_cursorposition; }
void
button( int const Button, int const Action );
inline
int
button( int Button, int Action );
int
button( int const Button ) const {
return m_buttons[ Button ]; }

View File

@@ -77,8 +77,8 @@ private:
using inputaxis_sequence = std::vector<input_axis>;
// methods
bool recall_bindings();
void bind( std::vector< std::reference_wrapper<user_command> > &Targets, cParser &Input, std::unordered_map<std::string, user_command> const &Translator, std::string const Point );
void on_button( int const Button, int const Action );
void bind( std::vector< std::reference_wrapper<user_command> > &Targets, cParser &Input, std::unordered_map<std::string, user_command> const &Translator, std::string Point );
void on_button( int Button, int Action );
void process_axes();
// members

View File

@@ -50,22 +50,21 @@ public:
bool
init() { return true; }
bool
key( int const Key, int const Action );
key( int Key, int Action );
int
key( int const Key ) const;
key( int Key ) const;
void
poll();
inline
user_command const
user_command const
command() const {
return m_command; }
bindingsetup_sequence&
bindings() {
return m_bindingsetups; }
int
binding( user_command const Command ) const;
binding( user_command Command ) const;
std::string
binding_hint( user_command const Command ) const;
binding_hint( user_command Command ) const;
void
dump_bindings();
@@ -101,7 +100,7 @@ private:
// methods
bool
is_movement_key( int const Key ) const;
is_movement_key( int Key ) const;
// members
user_command m_command { user_command::none }; // last, if any, issued command