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

Function add_json

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

Source from the content-addressed store, hash-verified

60}
61
62void add_json(J& a, J b) {
63 for(auto i : b["passive"]) {
64 a["passive"].append(i);
65 }
66 for(auto i : b["hit"]) {
67 a["hit"].append(i);
68 }
69}
70
71Fish::Fish(int _hp, int _atk, int _def, int _pos, int _id, FishSet* _ally, FishSet* _hostile):
72 hp(_hp), atk(_atk), def(_def), pos(_pos), id(_id), ally(_ally), hostile(_hostile) {

Callers 6

take_damageMethod · 0.85
specialMethod · 0.85
skillMethod · 0.85
explodeMethod · 0.85
bonus_attackMethod · 0.85
on_damagedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected