{"id":19458758,"url":"https://github.com/lchsk/simple-ecs","last_synced_at":"2026-06-13T12:03:43.722Z","repository":{"id":70291300,"uuid":"153898653","full_name":"lchsk/simple-ecs","owner":"lchsk","description":"A header-only implementation of an entity-component system","archived":false,"fork":false,"pushed_at":"2019-04-24T23:45:18.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T11:48:34.674Z","etag":null,"topics":["c-plus-plus","c-plus-plus-11","cpp","cpp11","entity-component-system"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lchsk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-20T11:28:41.000Z","updated_at":"2019-04-24T23:45:20.000Z","dependencies_parsed_at":"2023-02-24T07:30:20.521Z","dependency_job_id":null,"html_url":"https://github.com/lchsk/simple-ecs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lchsk/simple-ecs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimple-ecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimple-ecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimple-ecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimple-ecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lchsk","download_url":"https://codeload.github.com/lchsk/simple-ecs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lchsk%2Fsimple-ecs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c-plus-plus","c-plus-plus-11","cpp","cpp11","entity-component-system"],"created_at":"2024-11-10T17:28:25.600Z","updated_at":"2026-06-13T12:03:43.691Z","avatar_url":"https://github.com/lchsk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-ecs\n\nA simple header-only implementation of entity-component system\n\n## Installation\n\nJust add `include/simple_ecs.hpp` to your source code.\n\nIt's a part of SFML gamedev libraries: https://github.com/lchsk/knight-libs\n\n## Example\n\n```C++\n#include \"simple_ecs.hpp\"\n\nstruct Position {\n  int x;\n  int y;\n\n  Position(int x, int y) : x(x), y(y) {}\n};\n\necs::System system;\n\nauto entity = system.create();\n\nsystem.add\u003cPosition\u003e(e, 3, 5);\n\nauto \u0026pos = entity-\u003eget\u003cPosition\u003e();\n\nstd::cout \u003c\u003c pos-\u003ex \u003c\u003c std::endl; // prints 3\n\n```\n\n## Building tests\n\nMake sure that you have [CMake](http://www.cmake.org/) and a C++ compiler installed.\n\nYou also need `pkg-config` and `googletest`.\n\nThen open a terminal, go to the source directory and type the following commands:\n\n    $ mkdir build\n    $ cd build\n    $ cmake ..\n    $ make\n\n## Running tests\n\n`$ ctest`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fsimple-ecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flchsk%2Fsimple-ecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flchsk%2Fsimple-ecs/lists"}