MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / update

Method update

src/builtin/module_builtin_network.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 Server::shutdown();
26 }
27 void update ( char * pClass, const StructInfo * info, Context * ctx ) {
28 context = ctx;
29 classPtr = pClass;
30 pServer = (void **) adapt_field("_server",pClass,info);
31 if ( pServer ) *pServer = this;
32 fnOnConnect = adapt("onConnect",pClass,info);
33 fnOnDisconnect = adapt("onDisconnect",pClass,info);
34 fnOnData = adapt("onData",pClass,info);
35 fnOnError = adapt("onError",pClass,info);
36 fnOnLog = adapt("onLog",pClass,info);
37 }
38 virtual void onConnect() override {
39 if ( fnOnConnect ) {
40 return das_invoke_function<void>::invoke<void *>

Callers 1

server_restoreFunction · 0.45

Calls 2

adapt_fieldFunction · 0.85
adaptFunction · 0.85

Tested by

no test coverage detected