class
FLidarShotAuthority
- Module
- Networking
- Header
#include "Networking/Session/LidarShotAuthority.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FSendBatchFn = std::function<void(uint32_t peerId, const std::vector<FNetLidarShot>& batch)> |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetCaps | |
const FLidarShotCaps& | GetCaps | |
void | SetHistoryLimit | |
void | SetCatchupShotsPerTick | |
ELidarShotRefusal | Admit | Host: may this player's shot be relayed? pawnPosition is null when the shooter has no pawn the host can see (the origin check is skipped then). |
void | Record | Host: an admitted shot (or the host's own) joins the history. |
void | BeginCatchup | Host: replay the history to a player who just joined or rejoined. |
void | CancelCatchup | |
bool | IsCatchingUp | |
void | Tick | Refills the buckets and sends this tick's catch-up batches. |
void | Reset | |
uint32_t | GetHistoryCount | |
const FLidarShotAuthorityStats& | GetStats | |
const char* | RefusalName |
Function details
SetCaps
C++
void SetCaps(const FLidarShotCaps& caps)GetCaps
C++
const FLidarShotCaps& GetCaps() constSetHistoryLimit
C++
void SetHistoryLimit(uint32_t shots)SetCatchupShotsPerTick
C++
void SetCatchupShotsPerTick(uint32_t shots)Admit
C++
ELidarShotRefusal Admit(uint32_t shooterPlayerId, const FNetLidarShot& shot, const Vec3* pawnPosition)Host: may this player's shot be relayed? pawnPosition is null when the shooter has no pawn the host can see (the origin check is skipped then).
Record
C++
void Record(const FNetLidarShot& shot)Host: an admitted shot (or the host's own) joins the history.
BeginCatchup
C++
void BeginCatchup(uint32_t peerId)Host: replay the history to a player who just joined or rejoined.
CancelCatchup
C++
void CancelCatchup(uint32_t peerId)IsCatchingUp
C++
bool IsCatchingUp(uint32_t peerId) constTick
C++
void Tick(float deltaSeconds, const FSendBatchFn& send)Refills the buckets and sends this tick's catch-up batches.
Reset
C++
void Reset()GetHistoryCount
C++
uint32_t GetHistoryCount() constGetStats
C++
const FLidarShotAuthorityStats& GetStats() constRefusalName
C++
static const char* RefusalName(ELidarShotRefusal refusal)Generated from Networking/Session/LidarShotAuthority.h via networking.json · Nov 4, 2026Version 1.0.0