mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Add session_t typedef + remove unused functions (#6470)
* Add session_t typedef + remove unused functions u16 peer_id is used everywhere, to be more consistent and permit some evolutions on this type in the future (i'm working on a PoC), uniformize u16 peer_id to SessionId peer_id
This commit is contained in:
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include "network/networkprotocol.h"
|
||||
#include "irr_v3d.h"
|
||||
#include "util/container.h"
|
||||
#include "mapgen.h" // for MapgenParams
|
||||
@@ -123,14 +124,14 @@ public:
|
||||
bool isRunning();
|
||||
|
||||
bool enqueueBlockEmerge(
|
||||
u16 peer_id,
|
||||
session_t peer_id,
|
||||
v3s16 blockpos,
|
||||
bool allow_generate,
|
||||
bool ignore_queue_limits=false);
|
||||
|
||||
bool enqueueBlockEmergeEx(
|
||||
v3s16 blockpos,
|
||||
u16 peer_id,
|
||||
session_t peer_id,
|
||||
u16 flags,
|
||||
EmergeCompletionCallback callback,
|
||||
void *callback_param);
|
||||
|
Reference in New Issue
Block a user