{"action":"created","issue":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/689","repository_url":"https://api.github.com/repos/sschmid/Entitas-CSharp","labels_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/689/comments","events_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/689/events","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/689","id":317750795,"number":689,"title":"Service dependencies in systems","user":{"login":"YimingIsCOLD","id":8902432,"avatar_url":"https://avatars0.githubusercontent.com/u/8902432?v=4","gravatar_id":"","url":"https://api.github.com/users/YimingIsCOLD","html_url":"https://github.com/YimingIsCOLD","followers_url":"https://api.github.com/users/YimingIsCOLD/followers","following_url":"https://api.github.com/users/YimingIsCOLD/following{/other_user}","gists_url":"https://api.github.com/users/YimingIsCOLD/gists{/gist_id}","starred_url":"https://api.github.com/users/YimingIsCOLD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YimingIsCOLD/subscriptions","organizations_url":"https://api.github.com/users/YimingIsCOLD/orgs","repos_url":"https://api.github.com/users/YimingIsCOLD/repos","events_url":"https://api.github.com/users/YimingIsCOLD/events{/privacy}","received_events_url":"https://api.github.com/users/YimingIsCOLD/received_events","type":"User","site_admin":false},"labels":[{"id":744237661,"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/labels/discussion","name":"discussion","color":"7564f4","default":false},{"id":86821495,"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-25T18:51:21Z","updated_at":"2018-04-26T09:42:18Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWhat is the best way to pass services into an Entitas systems? There is a discussion in #609 with some pros and cons that @sschmid have point out but still could not decide on what ways to do it.\r\n\r\n1. Singleton, like match-one example\r\n\r\n2. Using a meta context to pass registered service to system. Just like the `Game Architecture With Entitas` in the wiki tutorial made by @FNGGames\r\n\r\n3. Use dependencies injection technique like Zenject. \r\n\r\nCheers\r\n"},"comment":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/comments/384579115","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/689#issuecomment-384579115","issue_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/689","id":384579115,"user":{"login":"kdrzymala","id":7557193,"avatar_url":"https://avatars2.githubusercontent.com/u/7557193?v=4","gravatar_id":"","url":"https://api.github.com/users/kdrzymala","html_url":"https://github.com/kdrzymala","followers_url":"https://api.github.com/users/kdrzymala/followers","following_url":"https://api.github.com/users/kdrzymala/following{/other_user}","gists_url":"https://api.github.com/users/kdrzymala/gists{/gist_id}","starred_url":"https://api.github.com/users/kdrzymala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdrzymala/subscriptions","organizations_url":"https://api.github.com/users/kdrzymala/orgs","repos_url":"https://api.github.com/users/kdrzymala/repos","events_url":"https://api.github.com/users/kdrzymala/events{/privacy}","received_events_url":"https://api.github.com/users/kdrzymala/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T09:42:18Z","updated_at":"2018-04-26T09:42:18Z","author_association":"NONE","body":"@StormRene This where DI frameworks shine ;-) TL;DR; you just do different bindings for tests. \r\n\r\nZenject docs have a bit more to say about it. I'll just guide you there, as there's no point of repeating this stuff:\r\nhttps://github.com/modesttree/Zenject/blob/master/Documentation/WritingAutomatedTests.md\r\nhttps://github.com/modesttree/Zenject/blob/master/Documentation/AutoMocking.md\r\n\r\n(seriously, Zenject has awesome documentation)\r\n\r\n"}}
{"actor":{"display_login":"kdrzymala"}}