{"action":"created","issue":{"url":"https://api.github.com/repos/wren-lang/wren/issues/639","repository_url":"https://api.github.com/repos/wren-lang/wren","labels_url":"https://api.github.com/repos/wren-lang/wren/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/wren-lang/wren/issues/639/comments","events_url":"https://api.github.com/repos/wren-lang/wren/issues/639/events","html_url":"https://github.com/wren-lang/wren/issues/639","id":388158991,"node_id":"MDU6SXNzdWUzODgxNTg5OTE=","number":639,"title":"Initializing Wren attributes from C","user":{"login":"Skyway666","id":16372100,"node_id":"MDQ6VXNlcjE2MzcyMTAw","avatar_url":"https://avatars3.githubusercontent.com/u/16372100?v=4","gravatar_id":"","url":"https://api.github.com/users/Skyway666","html_url":"https://github.com/Skyway666","followers_url":"https://api.github.com/users/Skyway666/followers","following_url":"https://api.github.com/users/Skyway666/following{/other_user}","gists_url":"https://api.github.com/users/Skyway666/gists{/gist_id}","starred_url":"https://api.github.com/users/Skyway666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skyway666/subscriptions","organizations_url":"https://api.github.com/users/Skyway666/orgs","repos_url":"https://api.github.com/users/Skyway666/repos","events_url":"https://api.github.com/users/Skyway666/events{/privacy}","received_events_url":"https://api.github.com/users/Skyway666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-06T10:53:31Z","updated_at":"2018-12-08T19:52:25Z","closed_at":null,"author_association":"NONE","body":"I am building the base for a game Engine as a subject in my degree. My subsystem of choice was scripting, and the language Wren. \r\n\r\nI red the documentation of \"Embedding\", and I managed to understand how to call Wren from C and viceversa. Even then, if I didn't overlook it, it doesn't seem to tackle the issue of initializing variables from a Wren class in C.\r\n\r\nThis is crucial, since, if I make a \"MoveWithArrows\" script, I might want to change the variable \"speed\" of the class and have different GameObjects being controlled with the arrows at different speeds, similar to how unity works... Can anybody help me?"},"comment":{"url":"https://api.github.com/repos/wren-lang/wren/issues/comments/445485291","html_url":"https://github.com/wren-lang/wren/issues/639#issuecomment-445485291","issue_url":"https://api.github.com/repos/wren-lang/wren/issues/639","id":445485291,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ4NTI5MQ==","user":{"login":"underscorediscovery","id":236374,"node_id":"MDQ6VXNlcjIzNjM3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/236374?v=4","gravatar_id":"","url":"https://api.github.com/users/underscorediscovery","html_url":"https://github.com/underscorediscovery","followers_url":"https://api.github.com/users/underscorediscovery/followers","following_url":"https://api.github.com/users/underscorediscovery/following{/other_user}","gists_url":"https://api.github.com/users/underscorediscovery/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorediscovery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorediscovery/subscriptions","organizations_url":"https://api.github.com/users/underscorediscovery/orgs","repos_url":"https://api.github.com/users/underscorediscovery/repos","events_url":"https://api.github.com/users/underscorediscovery/events{/privacy}","received_events_url":"https://api.github.com/users/underscorediscovery/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T19:52:24Z","updated_at":"2018-12-08T19:52:24Z","author_association":"MEMBER","body":"`console_test metaclass` is telling you that you're calling a method _on the class itself_. In simpler terms, `static speed=(_)`. You need to put an _instance_ of the class into slot 0, then call the instance method. If you put the _class itself_ it will be a static."}}
{"actor":{"display_login":"underscorediscovery"}}