[{"data":1,"prerenderedAt":408},["ShallowReactive",2],{"content-query-Ni8luUCBoy":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":402,"_id":403,"_source":404,"_file":405,"_stem":406,"_extension":407},"/dragonfly/main/handler","main",false,"","ArmaDragonflyClient - Handler","mdi:file-text-outline",{"type":11,"children":12,"toc":387},"root",[13,22,29,35,41,54,60,231,237,242,248,255,264,270,279,285,294,300,337,343],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"handler",[19],{"type":20,"value":21},"text","Handler",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"Handles data received from the database and routes it to the appropriate function. This function is a critical component of the callback system, receiving data from database operations and directing it to the specified function, either locally or to a remote client.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"syntax",[39],{"type":20,"value":40},"Syntax",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","[_uniqueID, _function, _call, _data, _netId] call dragonfly_db_fnc_handler\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"parameters",[58],{"type":20,"value":59},"Parameters",{"type":14,"tag":61,"props":62,"children":63},"table",{},[64,92],{"type":14,"tag":65,"props":66,"children":67},"thead",{},[68],{"type":14,"tag":69,"props":70,"children":71},"tr",{},[72,78,83,87],{"type":14,"tag":73,"props":74,"children":75},"th",{},[76],{"type":20,"value":77},"Parameter",{"type":14,"tag":73,"props":79,"children":80},{},[81],{"type":20,"value":82},"Type",{"type":14,"tag":73,"props":84,"children":85},{},[86],{"type":20,"value":28},{"type":14,"tag":73,"props":88,"children":89},{},[90],{"type":20,"value":91},"Default",{"type":14,"tag":93,"props":94,"children":95},"tbody",{},[96,124,149,176,205],{"type":14,"tag":69,"props":97,"children":98},{},[99,109,114,119],{"type":14,"tag":100,"props":101,"children":102},"td",{},[103],{"type":14,"tag":50,"props":104,"children":106},{"className":105},[],[107],{"type":20,"value":108},"_uniqueID",{"type":14,"tag":100,"props":110,"children":111},{},[112],{"type":20,"value":113},"String",{"type":14,"tag":100,"props":115,"children":116},{},[117],{"type":20,"value":118},"Unique identifier for the data chunk",{"type":14,"tag":100,"props":120,"children":121},{},[122],{"type":20,"value":123},"\"\"",{"type":14,"tag":69,"props":125,"children":126},{},[127,136,140,145],{"type":14,"tag":100,"props":128,"children":129},{},[130],{"type":14,"tag":50,"props":131,"children":133},{"className":132},[],[134],{"type":20,"value":135},"_function",{"type":14,"tag":100,"props":137,"children":138},{},[139],{"type":20,"value":113},{"type":14,"tag":100,"props":141,"children":142},{},[143],{"type":20,"value":144},"Name of function to receive the data",{"type":14,"tag":100,"props":146,"children":147},{},[148],{"type":20,"value":123},{"type":14,"tag":69,"props":150,"children":151},{},[152,161,166,171],{"type":14,"tag":100,"props":153,"children":154},{},[155],{"type":14,"tag":50,"props":156,"children":158},{"className":157},[],[159],{"type":20,"value":160},"_call",{"type":14,"tag":100,"props":162,"children":163},{},[164],{"type":20,"value":165},"Boolean",{"type":14,"tag":100,"props":167,"children":168},{},[169],{"type":20,"value":170},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":100,"props":172,"children":173},{},[174],{"type":20,"value":175},"false",{"type":14,"tag":69,"props":177,"children":178},{},[179,188,193,198],{"type":14,"tag":100,"props":180,"children":181},{},[182],{"type":14,"tag":50,"props":183,"children":185},{"className":184},[],[186],{"type":20,"value":187},"_data",{"type":14,"tag":100,"props":189,"children":190},{},[191],{"type":20,"value":192},"Array, String, Number, or Boolean",{"type":14,"tag":100,"props":194,"children":195},{},[196],{"type":20,"value":197},"The data retrieved from the database",{"type":14,"tag":100,"props":199,"children":200},{},[201],{"type":14,"tag":202,"props":203,"children":204},"span",{},[],{"type":14,"tag":69,"props":206,"children":207},{},[208,217,221,226],{"type":14,"tag":100,"props":209,"children":210},{},[211],{"type":14,"tag":50,"props":212,"children":214},{"className":213},[],[215],{"type":20,"value":216},"_netId",{"type":14,"tag":100,"props":218,"children":219},{},[220],{"type":20,"value":113},{"type":14,"tag":100,"props":222,"children":223},{},[224],{"type":20,"value":225},"(Optional) NetID of the player to receive the data",{"type":14,"tag":100,"props":227,"children":228},{},[229],{"type":20,"value":230},"nil",{"type":14,"tag":23,"props":232,"children":234},{"id":233},"return-value",[235],{"type":20,"value":236},"Return Value",{"type":14,"tag":30,"props":238,"children":239},{},[240],{"type":20,"value":241},"None. The data is passed to the specified function for processing.",{"type":14,"tag":23,"props":243,"children":245},{"id":244},"examples",[246],{"type":20,"value":247},"Examples",{"type":14,"tag":249,"props":250,"children":252},"h3",{"id":251},"process-data-locally",[253],{"type":20,"value":254},"Process data locally:",{"type":14,"tag":42,"props":256,"children":259},{"className":257,"code":258,"language":47,"meta":7},[45],"[\"0123456789\", \"dragonfly_db_fnc_test\", false, [\"Hello World!\"]] call dragonfly_db_fnc_handler;\n",[260],{"type":14,"tag":50,"props":261,"children":262},{"__ignoreMap":7},[263],{"type":20,"value":258},{"type":14,"tag":249,"props":265,"children":267},{"id":266},"send-data-to-a-specific-client",[268],{"type":20,"value":269},"Send data to a specific client:",{"type":14,"tag":42,"props":271,"children":274},{"className":272,"code":273,"language":47,"meta":7},[45],"[\"0123456789\", \"dragonfly_db_fnc_test\", false, [\"Hello World!\"], netId player] remoteExecCall [\"dragonfly_db_fnc_handler\", 2, false];\n",[275],{"type":14,"tag":50,"props":276,"children":277},{"__ignoreMap":7},[278],{"type":20,"value":273},{"type":14,"tag":249,"props":280,"children":282},{"id":281},"process-data-with-direct-call-synchronous",[283],{"type":20,"value":284},"Process data with direct call (synchronous):",{"type":14,"tag":42,"props":286,"children":289},{"className":287,"code":288,"language":47,"meta":7},[45],"[\"0123456789\", \"dragonfly_db_fnc_processInventory\", true, [[\"weapon1\", 30], [\"item2\", 5]]] call dragonfly_db_fnc_handler;\n",[290],{"type":14,"tag":50,"props":291,"children":292},{"__ignoreMap":7},[293],{"type":20,"value":288},{"type":14,"tag":23,"props":295,"children":297},{"id":296},"notes",[298],{"type":20,"value":299},"Notes",{"type":14,"tag":301,"props":302,"children":303},"ul",{},[304,310,315,327,332],{"type":14,"tag":305,"props":306,"children":307},"li",{},[308],{"type":20,"value":309},"The function validates that both the function name and data are valid before proceeding",{"type":14,"tag":305,"props":311,"children":312},{},[313],{"type":20,"value":314},"When a netId is provided, the data is sent to that specific client using remoteExec",{"type":14,"tag":305,"props":316,"children":317},{},[318,320,325],{"type":20,"value":319},"The ",{"type":14,"tag":50,"props":321,"children":323},{"className":322},[],[324],{"type":20,"value":160},{"type":20,"value":326}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":305,"props":328,"children":329},{},[330],{"type":20,"value":331},"This function is typically called by the scheduler or other core components rather than directly by user code",{"type":14,"tag":305,"props":333,"children":334},{},[335],{"type":20,"value":336},"Each handler call is logged, which is useful for debugging data flow",{"type":14,"tag":23,"props":338,"children":340},{"id":339},"links",[341],{"type":20,"value":342},"Links",{"type":14,"tag":30,"props":344,"children":345},{},[346,353,355,359,360,366,367,373,374,380,381],{"type":14,"tag":347,"props":348,"children":350},"a",{"href":349},"/dragonfly/main/addtask",[351],{"type":20,"value":352},"Add Task",{"type":20,"value":354}," |\n",{"type":14,"tag":347,"props":356,"children":357},{"href":4},[358],{"type":20,"value":21},{"type":20,"value":354},{"type":14,"tag":347,"props":361,"children":363},{"href":362},"/dragonfly/main/init",[364],{"type":20,"value":365},"Init",{"type":20,"value":354},{"type":14,"tag":347,"props":368,"children":370},{"href":369},"/dragonfly/main/processqueue",[371],{"type":20,"value":372},"Process Queue",{"type":20,"value":354},{"type":14,"tag":347,"props":375,"children":377},{"href":376},"/dragonfly/main/scheduler",[378],{"type":20,"value":379},"Scheduler",{"type":20,"value":354},{"type":14,"tag":347,"props":382,"children":384},{"href":383},"/dragonfly/main/setup",[385],{"type":20,"value":386},"Setup",{"title":7,"searchDepth":388,"depth":388,"links":389},2,[390,391,392,393,394,400,401],{"id":25,"depth":388,"text":28},{"id":37,"depth":388,"text":40},{"id":56,"depth":388,"text":59},{"id":233,"depth":388,"text":236},{"id":244,"depth":388,"text":247,"children":395},[396,398,399],{"id":251,"depth":397,"text":254},3,{"id":266,"depth":397,"text":269},{"id":281,"depth":397,"text":284},{"id":296,"depth":388,"text":299},{"id":339,"depth":388,"text":342},"markdown","content:dragonfly:main:handler.md","content","dragonfly/main/handler.md","dragonfly/main/handler","md",1742777962690]