MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / passive_to_json

Function passive_to_json

AgentBench.old/src/tasks/card_game/logic/src/fish.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42Json::Value passive_to_json(std::string type, int source, int player, float value, int time) {
43 Json::Value json;
44 json["type"] = type;
45 json["source"] = source;
46 json["player"] = player;
47 json["value"] = value;
48 json["time"] = time;
49 return json;
50}
51
52Json::Value hit_to_json(int target, int player, int value, bool traceable, int time) {
53 Json::Value json;

Callers 3

take_damageMethod · 0.85
explodeMethod · 0.85
on_damagedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected