{"id":21865304,"url":"https://github.com/shlifedev/event-flow","last_synced_at":"2025-10-31T22:02:52.426Z","repository":{"id":239551512,"uuid":"799847042","full_name":"shlifedev/event-flow","owner":"shlifedev","description":"non gc game event broadcast system for unity.","archived":false,"fork":false,"pushed_at":"2024-11-06T07:00:47.000Z","size":11636,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T07:37:21.080Z","etag":null,"topics":["event-system","unity","unity-event","unity-event-system"],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shlifedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-13T08:07:25.000Z","updated_at":"2024-11-06T07:00:51.000Z","dependencies_parsed_at":"2024-11-06T07:48:56.883Z","dependency_job_id":null,"html_url":"https://github.com/shlifedev/event-flow","commit_stats":null,"previous_names":["shlifedev/unity-event-system","shlifedev/event-flow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlifedev%2Fevent-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlifedev%2Fevent-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlifedev%2Fevent-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlifedev%2Fevent-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shlifedev","download_url":"https://codeload.github.com/shlifedev/event-flow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226856930,"owners_count":17693016,"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":["event-system","unity","unity-event","unity-event-system"],"created_at":"2024-11-28T04:15:51.153Z","updated_at":"2025-10-31T22:02:52.408Z","avatar_url":"https://github.com/shlifedev.png","language":"ShaderLab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventFlow\n\nEventFlow is a Pub-Sub event system that can be easily used universally in Unity or general .NET projects.\n\n\n- Zero GC with Roslyn Source Generator\n- Very Simple\n- Intuitive\n\n\n \n\nThe following is an example of sending a message to deal damage when a game character is touched.\n \n## [Example](https://github.com/shlifedev/event-flow/tree/main/src/Assets/Example)\n[Movie_001.webm](https://github.com/user-attachments/assets/19ef0dd3-7288-49fa-b3c3-87b2195be071)\n\n\n## Installation\n\n- git installiation\nhttps://github.com/shlifedev/event-flow.git?path=/src/Packages/EventFlow\n\n\n## Usage\n\n### [Declare Your Game Event](https://github.com/shlifedev/event-flow/tree/main/src/Assets/Example/Scripts/Messages/OnEntityDamagedMessage.cs) \n\n```\n public struct YourMessage : IEventMessage{ \n   public string Message;\n }\n```\n\n\n## Very Simple Usage\n\n### [Inherit IEventListenr\u003cT\u003e And Regist](https://github.com/shlifedev/event-flow/tree/main/src/Assets/Example/Scripts/HealthBarUI.cs)\n\nInherit \u0026 Subscribe IEventListener\u003cTMessage\u003e Your Class. \n\n\n```cs\n\n\n[EventFlowListener]\npublic partial class YourClass : MonoBehaviour, IEventListener\u003cYourMessage\u003e{\n    void OnEnable(){\n         RegisterEventListener(this);\n    }\n    void OnDisable(){\n         UnregisterEventListener(this);\n    }\n\n    public UniTask OnEvent(YourMessage args){\n         Debug.Log(\"Received! =\u003e \" + args.Message);\n    }\n}\n```\n\n\n### [Broadcast message](https://github.com/shlifedev/unity-event-system/blob/main/GameEvent/Example/Scripts/GameEntity.cs)\n\nAnd Broadcast Your Message.\n\n```cs\n     EventFlow.Broadcast(new YourMessage(){Message=\"hi\"});\n```  \n\n\n\n## FAQ\n\n### Why should you use the EventFlowListener Attribute?\n\nInternally, it uses the Roslyn source generator to help you subscribe to and unsubscribe from multiple message types without GC. If you use EventFlow.Register(this); instead, you don't have to use it, but we recommend using it.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlifedev%2Fevent-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshlifedev%2Fevent-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlifedev%2Fevent-flow/lists"}