{"id":23160889,"url":"https://github.com/fluffyspectre/genericeventsystem","last_synced_at":"2025-08-31T12:43:37.964Z","repository":{"id":191274373,"uuid":"684267104","full_name":"FluffySpectre/genericeventsystem","owner":"FluffySpectre","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-28T19:42:40.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T19:27:42.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FluffySpectre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-28T19:42:26.000Z","updated_at":"2023-08-28T19:42:46.000Z","dependencies_parsed_at":"2023-08-29T05:37:33.909Z","dependency_job_id":"72fe275d-9f65-404a-9a33-7d9cc509406f","html_url":"https://github.com/FluffySpectre/genericeventsystem","commit_stats":null,"previous_names":["fluffyspectre/genericeventsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FluffySpectre/genericeventsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluffySpectre%2Fgenericeventsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluffySpectre%2Fgenericeventsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluffySpectre%2Fgenericeventsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluffySpectre%2Fgenericeventsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluffySpectre","download_url":"https://codeload.github.com/FluffySpectre/genericeventsystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluffySpectre%2Fgenericeventsystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272982771,"owners_count":25025984,"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-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-12-17T23:12:25.686Z","updated_at":"2025-08-31T12:43:37.938Z","avatar_url":"https://github.com/FluffySpectre.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generic Event System\n\nThis approach keeps the event data and the event management logic separate. It makes use of a templated static class which removes the need for a specialized event base class and explicit type casting.\n\n## Usage:\n\n### Emit Event\n\n    using GenericEventSystem;\n\n    // define a event class\n    public class EnemyKilledEvent {\n\t    public string EnemyName { get; set; }\n\t    public string KillerName { get; set; }\n    }\n\n    // setup event object\n    EnemyKilledEvent e = new EnemyKilledEvent();\n    e.EnemyName = \"Goblin\";\n    e.KillerName = \"Slayer X\";\n\n    // emit the event\n    EventSystem\u003cEnemyKilledEvent\u003e.Emit(e);\n\n### Listen for Event\n\n    using GenericEventSystem;\n\n    EventSystem\u003cEnemyKilledEvent\u003e.EventHappened += (e) =\u003e {\n        Console.WriteLine(e.EnemyName + \" killed by \" + e.KillerName);\n\n        // do awesome stuff...\n    };","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffyspectre%2Fgenericeventsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffyspectre%2Fgenericeventsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffyspectre%2Fgenericeventsystem/lists"}