Skip to content

Commit 0208efe

Browse files
committed
feat(docs/entity): AcceptInput
1 parent 735a414 commit 0208efe

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docgen/data/data.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,27 @@
402402
"params": {},
403403
"additional": {}
404404
},
405+
"acceptinput": {
406+
"title": "AcceptInput",
407+
"template": "function-syntax",
408+
"description": "Sends an input to the entity.",
409+
"language": "both",
410+
"variable": {
411+
"cpp": "entity->AcceptInput",
412+
"lua": "entity:AcceptInput"
413+
},
414+
"return": "void",
415+
"params": {
416+
"input": "const char*",
417+
"activator": "const char*",
418+
"caller": "const char*",
419+
"value": "double*"
420+
},
421+
"additional": {
422+
"cpp": ":::note\nThe activator and caller needs to be an entity or a player.\nTo specify a player you need to use \"player:ID\", where the ID is the player id.\nTo specify an entity you need to use \"entity:ID\", where the ID is the entity id.\n:::",
423+
"lua": ":::note\nThe activator and caller needs to be an entity or a player.\nTo specify a player you need to use \"player:ID\", where the ID is the player id.\nTo specify an entity you need to use \"entity:ID\", where the ID is the entity id.\n:::"
424+
}
425+
},
405426
"setmodel": {
406427
"title": "SetModel",
407428
"template": "function-syntax",

docgen/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const GenerateLuaType = (param) => {
2424
else if (param == "DB_Result" || param.includes("vector") || param == "const char**" || param.includes("std::unordered_map")) return "table";
2525
else if (param == "Entity*" || param == "HTTPRequest*") return "object";
2626
else if (param == "Vector*") return "vector3";
27+
else if (param == "double*") return "number";
2728
else if (param == "Color*") return "table ({ r -- number , g -- number, b -- number, a -- number })";
2829
else if (param == "MessageType") return "MessageType";
2930
else if (param == "") return "args: string / number / boolean";

0 commit comments

Comments
 (0)