mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-29 11:36:41 +01:00
refactor: rename the import methods and the module variables (Sonar S1669) (#363)
import and module are contextual keywords of C++20 modules. The text loaders of the scene nodes (shape_node, lines_node, road_node, junction_node, roadpoint_node, sweep_node) become import_from(), the WASM module of the screen host's cache entry and of load() becomes wasm_module, and the path of the written test module becomes module_path. Renames only.
This commit is contained in:
@@ -404,7 +404,7 @@ bool sweep_node::state::operator==(state const &Other) const
|
||||
|
||||
sweep_node::sweep_node(scene::node_data const &Nodedata) : basic_node(Nodedata) {}
|
||||
|
||||
void sweep_node::import(cParser &Input, glm::dvec3 const &Offset)
|
||||
void sweep_node::import_from(cParser &Input, glm::dvec3 const &Offset)
|
||||
{
|
||||
m_state = state{};
|
||||
m_state.model = Input.getToken<std::string>();
|
||||
|
||||
Reference in New Issue
Block a user