摘要:
头文件:#include "json/document.h"#include "json/stringbuffer.h"#include "json/writer.h"代码:void UserManage::SaveUserToFile(){ do { CC_BREAK_... 阅读全文
posted @ 2015-02-09 14:15
冷夜 - 网游编程技术
阅读(1737)
评论(0)
推荐(0)
摘要:
头文件:#include "json/document.h"#include "json/stringbuffer.h"#include "json/writer.h"代码:bool UserManage::LoadUsers(){ bool bret=false; do { ... 阅读全文
posted @ 2015-02-09 14:14
冷夜 - 网游编程技术
阅读(6640)
评论(0)
推荐(0)
摘要:
如果想要修改一个plist文件新打包成plist,而此刻原来的小图都找不到了,那只能把plist分解了,代码如下:void UiManage::DecodePlist(string imgPath,string plistPath){ FileUtils *pFileUtil=FileUtil... 阅读全文
posted @ 2015-02-09 14:10
冷夜 - 网游编程技术
阅读(3186)
评论(0)
推荐(0)
摘要:
l利用cocostudio做UI和场景时,经常要去获取某个节点,cocostudio2.1开始加入了文件的概念,可以创建场景,节点,层等文件,把公用的东西创建到文件里,然后把这个文件拖到场景里使用,达到充分利用的目的。从场景中获取某个文件的节点时,经常发现找不到,于是把场景节点树导出为XML文件,节... 阅读全文
posted @ 2015-02-09 14:07
冷夜 - 网游编程技术
阅读(1840)
评论(0)
推荐(0)

浙公网安备 33010602011771号