|
VoltMod
C++23 framework for CS2 server plugins
|
Access CS user-message fields through protobuf reflection. More...
#include <google/protobuf/descriptor.h>#include <google/protobuf/message.h>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | VoltMod |
Typedefs | |
| using | VoltMod::ProtoMessage = google::protobuf::Message |
| using | VoltMod::ProtoFieldDescriptor = google::protobuf::FieldDescriptor |
Functions | |
| const ProtoFieldDescriptor * | VoltMod::ProtoField (const ProtoMessage &message, std::string_view name) |
Access CS user-message fields through protobuf reflection.
Consumer builds do not generate the CS-specific messages from cstrike15_usermessages.proto. Their engine-registered descriptors still support name-based lookup. A renamed field therefore appears missing at runtime, and each caller chooses its fallback.
Definition in file ProtoReflect.hpp.