{"id":26234346,"url":"https://github.com/cykoder/deusconsole","last_synced_at":"2025-12-28T08:40:32.809Z","repository":{"id":152047617,"uuid":"415202158","full_name":"cykoder/deusconsole","owner":"cykoder","description":"A quake/source style console engine allowing for runtime modification of variables and calling of methods","archived":false,"fork":false,"pushed_at":"2021-10-12T02:20:32.000Z","size":2422,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-08-05T00:30:59.099Z","etag":null,"topics":["console","engine","game","game-engine","quake","source"],"latest_commit_sha":null,"homepage":"https://samhellawell.github.io/deusconsole/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cykoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-10-09T04:31:29.000Z","updated_at":"2023-08-05T00:31:06.045Z","dependencies_parsed_at":null,"dependency_job_id":"03339b9b-ff85-4611-bee5-9d6595532261","html_url":"https://github.com/cykoder/deusconsole","commit_stats":null,"previous_names":["cykoder/deusconsole"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cykoder%2Fdeusconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cykoder%2Fdeusconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cykoder%2Fdeusconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cykoder%2Fdeusconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cykoder","download_url":"https://codeload.github.com/cykoder/deusconsole/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243321732,"owners_count":20272739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console","engine","game","game-engine","quake","source"],"created_at":"2025-03-13T01:30:04.305Z","updated_at":"2025-12-28T08:40:32.766Z","avatar_url":"https://github.com/cykoder.png","language":"C++","readme":"# Deus Console\n\nA tiny C++17, header only quake/source style console engine allowing for runtime modification of variables and calling of methods. Useful for game engines and GUI tools.\n\nCheck out the [ImGui demo here](https://samhellawell.github.io/deusconsole/) and its [source code here](./example). You can also refer to [the tests](./test.cpp) to see usage examples.\n\n# Features\n\n- Minimal use of exceptions to allow for easy error handling\n- Static registering of exposed variables\n- Runtime registering of variables and methods as lambda functions\n- Console variable flags\n- Help/description system\n- Retrieve values as specific types\n\n# Getting started\n\nDrop the header into your project through whatever means you like and include it anywhere where you may want to define console variables/methods or process commands:\n```c++\n#include \"deus-console.h\"\n\n// Bind custom variable\nstatic TDeusStaticConsoleVariable\u003cint\u003e CVarTestInteger(\n  \"test.integer\",\n  123,\n  \"A test integer variable\"\n);\n\nint main(int argc, char* argv[]) {\n  // Get console instance and bind base commands (such as help)\n  IDeusConsoleManager* console = IDeusConsoleManager::get();\n  console-\u003ebindBaseCommands();\n\n  // Use custom variable\n  int myVar = console-\u003egetCVar\u003cint\u003e(\"test.integer\");\n  std::cout \u003c\u003c \"myVar value: \" \u003c\u003c myVar \u003c\u003c std::endl;\n  std::cout \u003c\u003c \"myVar value: \" \u003c\u003c CVarTestInteger.get() \u003c\u003c std::endl;\n\n  // Output help\n  std::cout \u003c\u003c console-\u003erunCommand(\"help\") \u003c\u003c std::endl;\n}\n```\n\nThere is no documentation (yet), but the code is pretty simple and self documenting.\n\n# Examples\n\nCurrently most of the example code is in `test.cpp`. Plan to expand with more examples if there is interest.\n\n# Testing\n\nThere is no extensive test framework or anything used, just simple if/else macros and variable comparison. To compile and run the tests with G++, you would run something like:\n\n```bash\ng++ test.cpp \u0026\u0026 ./a.out add 2 3 4\n```\n\nor\n\n```bash\nclang++ -Wall -std=c++17 test.cpp\n```\n\nAny arguments will be treated as a command to be processed, for example: `add 2 3 4` will internally call the `add` method with those arguments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcykoder%2Fdeusconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcykoder%2Fdeusconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcykoder%2Fdeusconsole/lists"}