Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.1 フルーツ用の配列を作成する #14

Open
niku opened this issue Feb 22, 2015 · 0 comments
Open

4.4.1 フルーツ用の配列を作成する #14

niku opened this issue Feb 22, 2015 · 0 comments

Comments

@niku
Copy link
Owner

niku commented Feb 22, 2015

cocos2d-x でいうところの VectorMap
cocos2d-js のリファレンスマニュアルを見る限りではそのものずばりのクラスがないようだった.

JavaScript だと通常は ArrayObject に相当するだろう.
html5 のところではそれで全く問題ないのだけど,
c++ オブジェクトに変換するときもそれで大丈夫なんだろうか?

cocos2d-js に grep をかけてみつけた js_manual_conversions.h にある

というメソッドを見る限りでは

  • JavaScript の Array は cocos2d の Vector
  • JavaScript の Object は cocos2d の Map

変換されるようだ.
つまり大丈夫そうだ.

niku added a commit that referenced this issue Feb 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant