在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kaimallea/demoinfogo-linux开源软件地址(OpenSource Url):https://github.com/kaimallea/demoinfogo-linux开源编程语言(OpenSource Language):C++ 91.9%开源软件介绍(OpenSource Introduction):CS:GO Demos and Network MessagesDemos and network messages in CS:GO use Google's Protocol Buffers (protobuf). Protobuf is a message/object serialization language that generates code to serialize the objects efficiently. For information about protobuf, see https://developers.google.com/protocol-buffers/docs/overview
The repo contains the source code required to build this tool on linux. The source includes the proto files containing network message definitions. Building demoinfogoPrequisites:
In order to build demoinfogo, follow these steps:
Both protobuf and demoinfogo are cross-compiled for 32-bit; otherwise it will not work. Working with Network MessagesBuilding demoinfogo generates C++ classes from the network protobuf files. Follow these steps to generate these files for use in your application without building demoinfogo:
You can now use the generated classes in your C++ code to send user messages. Here is an example of how to send the HintText message CSingleUserRecipientFilter filter( this );
filter.MakeReliable();
CCSUsrMsg_HintText msg;
msg.set_text( "ExampleHint" );
SendUserMessage( filter, CS_UM_HintText, msg ); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论