{"action":"created","issue":{"url":"https://api.github.com/repos/AdamsLair/duality/issues/185","labels_url":"https://api.github.com/repos/AdamsLair/duality/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/AdamsLair/duality/issues/185/comments","events_url":"https://api.github.com/repos/AdamsLair/duality/issues/185/events","html_url":"https://github.com/AdamsLair/duality/issues/185","id":68965357,"number":185,"title":"Make Duality a Portable Class Library","user":{"login":"AdamsLair","id":5013908,"avatar_url":"https://avatars.githubusercontent.com/u/5013908?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamsLair","html_url":"https://github.com/AdamsLair","followers_url":"https://api.github.com/users/AdamsLair/followers","following_url":"https://api.github.com/users/AdamsLair/following{/other_user}","gists_url":"https://api.github.com/users/AdamsLair/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamsLair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamsLair/subscriptions","organizations_url":"https://api.github.com/users/AdamsLair/orgs","repos_url":"https://api.github.com/users/AdamsLair/repos","events_url":"https://api.github.com/users/AdamsLair/events{/privacy}","received_events_url":"https://api.github.com/users/AdamsLair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AdamsLair/duality/labels/Engine","name":"Engine","color":"bfe5bf"},{"url":"https://api.github.com/repos/AdamsLair/duality/labels/Task","name":"Task","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AdamsLair/duality/milestones/4","html_url":"https://github.com/AdamsLair/duality/milestones/v2.0","labels_url":"https://api.github.com/repos/AdamsLair/duality/milestones/4/labels","id":989404,"number":4,"title":"v2.0","description":"\"Coming Soon\" Stuff that would introduce too many or too severe breaking changes to be released in anything less than a major version step.","creator":{"login":"AdamsLair","id":5013908,"avatar_url":"https://avatars.githubusercontent.com/u/5013908?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamsLair","html_url":"https://github.com/AdamsLair","followers_url":"https://api.github.com/users/AdamsLair/followers","following_url":"https://api.github.com/users/AdamsLair/following{/other_user}","gists_url":"https://api.github.com/users/AdamsLair/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamsLair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamsLair/subscriptions","organizations_url":"https://api.github.com/users/AdamsLair/orgs","repos_url":"https://api.github.com/users/AdamsLair/repos","events_url":"https://api.github.com/users/AdamsLair/events{/privacy}","received_events_url":"https://api.github.com/users/AdamsLair/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":15,"state":"open","created_at":"2015-02-21T15:06:22Z","updated_at":"2015-09-01T21:27:26Z","due_on":null,"closed_at":null},"comments":28,"created_at":"2015-04-16T16:53:41Z","updated_at":"2015-09-01T21:27:26Z","closed_at":"2015-09-01T21:27:26Z","body":"In preparation for later cross-platform ports, Duality might need to lose some dependencies:\r\n\r\n- For user plugins to be portable, they should be a PCL. \r\n- Since they depend on Duality, the core also needs to be a PCL.\r\n- All direct, static dependencies need to be PCLs (~~OpenTK~~, Farseer, NVorbis)\r\n- There is no System.Drawing. No Bitmap and Font classes!\r\n  - Deal with Pixmap.LoadXY methods (which use Bitmaps to read image data from files)\r\n  - Deal with Font loading (which uses system Fonts to render .ttf to a Pixmap them at runtime)\r\n- There is no File I/O\r\n  - Deal with anything that uses File or Directory classes. Potentially Path as well.\r\n- There is no Serializable / NonSerialized stuff\r\n  - Switch to a custom attribute?\r\n- There is no Assembly.Load from file or byte[]\r\n\r\nAs an alternative, Duality could use the Bait-And-Switch method to provide a pseudo PCL layer and provide different core binaries for different platforms. If achievable, however, it would be preferable if the Duality core was an actual PCL and all platform-specifics could be moved to a plugin."},"comment":{"url":"https://api.github.com/repos/AdamsLair/duality/issues/comments/136865842","html_url":"https://github.com/AdamsLair/duality/issues/185#issuecomment-136865842","issue_url":"https://api.github.com/repos/AdamsLair/duality/issues/185","id":136865842,"user":{"login":"AdamsLair","id":5013908,"avatar_url":"https://avatars.githubusercontent.com/u/5013908?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamsLair","html_url":"https://github.com/AdamsLair","followers_url":"https://api.github.com/users/AdamsLair/followers","following_url":"https://api.github.com/users/AdamsLair/following{/other_user}","gists_url":"https://api.github.com/users/AdamsLair/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamsLair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamsLair/subscriptions","organizations_url":"https://api.github.com/users/AdamsLair/orgs","repos_url":"https://api.github.com/users/AdamsLair/repos","events_url":"https://api.github.com/users/AdamsLair/events{/privacy}","received_events_url":"https://api.github.com/users/AdamsLair/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T21:27:26Z","updated_at":"2015-09-01T21:27:26Z","body":"**Progress:**\r\n\r\n- The Duality core and all core plugins are now PCLs.\r\n- The default core plugin template in the editor is now a PCL.\r\n\r\nClosing this."}}