Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

pixi-projection plugin externs #168

Open
hypersurge opened this issue Jun 5, 2020 · 2 comments
Open

pixi-projection plugin externs #168

hypersurge opened this issue Jun 5, 2020 · 2 comments

Comments

@hypersurge
Copy link

I'm attempting to create externs for pixi-projection plugin, and would intend to have them within pixi.plugins.projection. But I'm struggling with understanding the best way to resolve extra methods attached to core classes. For example "pixi.core.display.Container" will receive method "convertTo2d()" when the plugin is used. Suggestions welcomed with thanks.

@ivanpopelyshev
Copy link

I dont know how to do it in haxe. Mixins should be possible, right?

I even found a way to do them in typescript with usage of ES6 modules

@hypersurge
Copy link
Author

A bit out of my comfort zone ... I'm not aware of a non-macro way for Haxe to handle mixins or dual inheritance? So I've made some compromises and made a start.

https://github.com/hypersurge/pixi-haxe/tree/dev/src/pixi/plugins/projection

If I get things stable I'll make a PR back to here. Thanks @ivanpopelyshev for the Projection plugin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants