Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

怎么定义自己的结构体数组

$
0
0

@jumpchess1 写道:

SocketManager.js

var Socket = {
    ipAndPort: cc.String,
    socket: null,
};

var SocketManager = cc.Class({
    properties: {
        socketMap: [Socket],
    },
   ...
});

这个是编译不过的.

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>