MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SendResourceLoadedHint

Method SendResourceLoadedHint

LuaSTGPlus/RemoteDebuggerClient.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void RemoteDebuggerClient::SendResourceLoadedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name, const wchar_t* Path, float LoadingTime)
68{
69 shared_ptr<Value> tMessage = make_shared<Value>(ValueType::Dictionary);
70 tMessage->VDict["type"] = make_shared<Value>(static_cast<int>(Type));
71 tMessage->VDict["pool"] = make_shared<Value>(static_cast<int>(PoolType));
72 tMessage->VDict["name"] = make_shared<Value>(Name);
73 tMessage->VDict["path"] = make_shared<Value>(fcyStringHelper::WideCharToMultiByte(Path, CP_UTF8));
74 tMessage->VDict["time"] = make_shared<Value>(static_cast<int>(LoadingTime * 1000.f));
75
76 sendUdpMessage(UdpMessageType::ResourceLoaded, tMessage);
77}
78
79void RemoteDebuggerClient::SendResourceRemovedHint(ResourceType Type, ResourcePoolType PoolType, const char* Name)
80{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected