mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
scriptapi: Sort out ServerEnvironment / Environment distinction properly
The API implementation is shared between CSM and SSM. Functions should retrieve a plain env when they do not need any server-specific functions.
This commit is contained in:
parent
f105bc8dc2
commit
054c5dfaa3
7 changed files with 72 additions and 65 deletions
|
@ -334,16 +334,6 @@ public:
|
|||
// This makes stuff happen
|
||||
void step(f32 dtime);
|
||||
|
||||
/*!
|
||||
* Returns false if the given line intersects with a
|
||||
* non-air node, true otherwise.
|
||||
* \param pos1 start of the line
|
||||
* \param pos2 end of the line
|
||||
* \param p output, position of the first non-air node
|
||||
* the line intersects
|
||||
*/
|
||||
bool line_of_sight(v3f pos1, v3f pos2, v3s16 *p = NULL);
|
||||
|
||||
u32 getGameTime() const { return m_game_time; }
|
||||
|
||||
void reportMaxLagEstimate(float f) { m_max_lag_estimate = f; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue