{"id":16985237,"url":"https://github.com/kooparse/entities","last_synced_at":"2025-07-28T19:07:34.604Z","repository":{"id":78350530,"uuid":"338581491","full_name":"kooparse/entities","owner":"kooparse","description":"A generic system for entities with handle behavior. ","archived":false,"fork":false,"pushed_at":"2021-06-05T11:12:27.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-17T17:16:04.201Z","etag":null,"topics":["entities","game-engine","gamedev","generational-index","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/kooparse.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-13T13:31:43.000Z","updated_at":"2021-06-05T11:12:29.000Z","dependencies_parsed_at":"2023-03-24T08:04:50.140Z","dependency_job_id":null,"html_url":"https://github.com/kooparse/entities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kooparse/entities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Fentities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Fentities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Fentities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Fentities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kooparse","download_url":"https://codeload.github.com/kooparse/entities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Fentities/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267569149,"owners_count":24109016,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["entities","game-engine","gamedev","generational-index","zig","ziglang"],"created_at":"2024-10-14T02:43:01.371Z","updated_at":"2025-07-28T19:07:34.526Z","avatar_url":"https://github.com/kooparse.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entities\n\nGeneric system of entities written in zig. Without ABA problems, using\ngenerational index in order to access the associated data. The code is clear and simple to understand.\n\n## Examples\n\n```zig\nusingnamespace @import(\"entities\");\n\npub fn main () void {\n  var entities = Entities(f32).init(default_allocator);\n\n  const handle_1 = try entities.append(1.5);\n  const handle_2 = try entities.append(2.5);\n  const handle_3 = try entities.append(3.5);\n  // You could hardcode specific handle id.\n  const handle_4 = try entities.append_hard(4.5, 55);\n\n  // Getting the inner data by using associated handle.\n  print(\"{}\\n\", .{entities.get(handle_2)});\n\n  // Removes data using bucket pooling.\n  entities.remove(handle_1);\n\n  // Iterator over all active handles.\n  var it = entities.interate();\n  while(it.next()) |datum| {\n    print(\"datum: {}\\n\", .{datum.*});\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkooparse%2Fentities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkooparse%2Fentities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkooparse%2Fentities/lists"}