Net message types

Network message wrappers for Source2 networking system.

This file defines strongly-typed wrappers around protobuf-based network messages used by the engine.

Messages are grouped into categories:

  • net_* -> core networking
  • clc_* -> client -> server
  • svc_* -> server -> client
All classes inherit from CNetMessagePB.
Template parameters define message ID, protobuf type, group and flags.

Header source2mod/schema/netmessages.h

Inherits CNetMessagePB< PROTO_TYPE >

Fields

FieldType
kMsgIdint32_t
kSignonGroupSignonGroup_t
kBufTypeNetChannelBufType_t
kIsForServerbool

Methods

GetGroupName

static constexpr const char* GetGroupName();

MyType_t

using MyType_t = CNetMessagePBTyped< ID, PROTO_TYPE, SIGNON, BUF_TYPE, IS_FOR_SERVER >;

PBType_t

using PBType_t = PROTO_TYPE;

Enums

SignonGroup_t

enum SignonGroup_t : int32_t
NameValue
SG_INVALID-1
SG_GENERIC0
SG_LOCALPLAYER1
SG_OTHERPLAYER2
SG_ENTITIES3
SG_SOUNDS4
SG_EVENTS5
SG_VOICE6
SG_STRINGTABLE7
SG_MOVE8
SG_STRINGCMD9
SG_SIGNON10
SG_SYSTEM11
SG_DECALS12
SG_USERMSG13
SG_CLIENTMSG14
SG_SPAWNGROUPS15
SG_ENGINE16
SG_HLTVREPLAY17
SG_TOTAL18

On this page