class

FLidarShotAuthority

Module
Networking
Header
#include "Networking/Session/LidarShotAuthority.h"
Namespace
Mowo

Type aliases

AliasDescription
using FSendBatchFn = std::function<void(uint32_t peerId, const std::vector<FNetLidarShot>& batch)>

Public functions

ReturnsNameDescription
voidSetCaps
const FLidarShotCaps&GetCaps
voidSetHistoryLimit
voidSetCatchupShotsPerTick
ELidarShotRefusalAdmitHost: 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).
voidRecordHost: an admitted shot (or the host's own) joins the history.
voidBeginCatchupHost: replay the history to a player who just joined or rejoined.
voidCancelCatchup
boolIsCatchingUp
voidTickRefills the buckets and sends this tick's catch-up batches.
voidReset
uint32_tGetHistoryCount
const FLidarShotAuthorityStats&GetStats
const char*RefusalName

Function details

SetCaps

C++
void SetCaps(const FLidarShotCaps& caps)

GetCaps

C++
const FLidarShotCaps& GetCaps() const

SetHistoryLimit

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) const

Tick

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() const

GetStats

C++
const FLidarShotAuthorityStats& GetStats() const

RefusalName

C++
static const char* RefusalName(ELidarShotRefusal refusal)
Generated from Networking/Session/LidarShotAuthority.h via networking.json · Nov 4, 2026Version 1.0.0