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

reformat: functions can be made static

This commit is contained in:
jerrrrycho
2026-07-04 06:09:04 +02:00
parent 1d0d1c015b
commit aeb800283c
66 changed files with 199 additions and 184 deletions

View File

@@ -1093,7 +1093,8 @@ basic_region::update_traction( TDynamicObject *Vehicle, int const Pantographinde
// checks whether specified file is a valid region data file
bool
basic_region::is_scene( std::string const &Scenariofile ) const {
basic_region::is_scene( std::string const &Scenariofile )
{
auto filename { Scenariofile };
while( filename[ 0 ] == '$' ) {

View File

@@ -213,7 +213,7 @@ public:
using eventlauncher_sequence = std::vector<TEventLauncher *>;
using memorycell_sequence = std::vector<TMemCell *>;
// methods
void
static void
launch_event(TEventLauncher *Launcher, bool local_only);
void
enclose_area( basic_node *Node );
@@ -387,8 +387,8 @@ public:
void
update_sounds();
// checks whether specified file is a valid region data file
bool
is_scene( std::string const &Scenariofile ) const;
static bool
is_scene( std::string const &Scenariofile );
// stores content of the class in file with specified name
void
serialize( std::string const &Scenariofile ) const;
@@ -475,7 +475,7 @@ public:
// methods
// checks whether specified point is within boundaries of the region
bool
static bool
point_inside( glm::dvec3 const &Location );
// legacy method, trims provided shape to fit into a section. adds trimmed part at the end of provided list, returns true if changes were made
static

View File

@@ -45,17 +45,17 @@ private:
translate_node( basic_node *Node, glm::dvec3 const &Location );
void
translate_node( basic_node *Node, float Offset );
void
static void
translate_instance( TAnimModel *Instance, glm::dvec3 const &Location );
void
static void
translate_instance( TAnimModel *Instance, float Offset );
void
static void
translate_memorycell( TMemCell *Memorycell, glm::dvec3 const &Location );
void
static void
translate_memorycell( TMemCell *Memorycell, float Offset );
void
rotate_node( basic_node *Node, glm::vec3 const &Angle );
void
static void
rotate_instance( TAnimModel *Instance, glm::vec3 const &Angle );
};

View File

@@ -64,7 +64,7 @@ private:
// creates handle for a new group
group_handle
create_handle();
bool
static bool
assign_cross_switch(map::track_switch&sw, std::string &sw_name, const std::string &id, size_t idx);
// members
group_map m_groupmap; // map of established node groups