91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 22.66MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-27
  • 語言: 其他
  • 標簽: 源碼??cocos??protobuf??

資源簡介

Cocos Creator 實現protobuf與后臺通信源代碼,使用websocket自定義消息格式,對第一次使用cocos creator實現protobuf有參考價值,項目只有一個登陸的demo用于測試protobuf與后臺通信

資源截圖

代碼片段和文件信息

/****************************************************************************
?Copyright?(c)?2017-2018?Xiamen?Yaji?Software?Co.?Ltd.
?
?http://www.cocos.com
?
?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
?of?this?software?and?associated?engine?source?code?(the?“Software“)?a?limited
?worldwide?royalty-free?non-assignable?revocable?and?non-exclusive?license
?to?use?Cocos?Creator?solely?to?develop?games?on?your?target?platforms.?You?shall
?not?use?Cocos?Creator?software?for?developing?other?software?or?tools?that‘s
?used?for?developing?games.?You?are?not?granted?to?publish?distribute
?sublicense?and/or?sell?copies?of?Cocos?Creator.
?
?The?software?or?tools?in?this?License?Agreement?are?licensed?not?sold.
?Xiamen?Yaji?Software?Co.?Ltd.?reserves?all?rights?not?expressly?granted?to?you.
?
?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
?AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
?LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
?THE?SOFTWARE.
?****************************************************************************/

#include?“AppDelegate.h“

#include?“cocos2d.h“

#include?“cocos/scripting/js-bindings/manual/jsb_module_register.hpp“
#include?“cocos/scripting/js-bindings/manual/jsb_global.h“
#include?“cocos/scripting/js-bindings/jswrapper/SeApi.h“
#include?“cocos/scripting/js-bindings/event/EventDispatcher.h“
#include?“cocos/scripting/js-bindings/manual/jsb_classtype.hpp“

USING_NS_CC;

AppDelegate::AppDelegate(int?width?int?height)?:?Application(“Cocos?Game“?width?height)
{
}

AppDelegate::~AppDelegate()
{
}

bool?AppDelegate::applicationDidFinishLaunching()
{
????se::scriptEngine?*se?=?se::scriptEngine::getInstance();
????
????jsb_set_xxtea_key(“64841e71-94d9-4c“);
????jsb_init_file_operation_delegate();
????
#if?defined(COCOS2D_DEBUG)?&&?(COCOS2D_DEBUG?>?0)
????//?Enable?debugger?here
????jsb_enable_debugger(“0.0.0.0“?6086?false);
#endif
????
????se->setExceptionCallback([](const?char?*location?const?char?*message?const?char?*stack)?{
????????//?Send?exception?information?to?server?like?Tencent?Bugly.
????});
????
????jsb_register_all_modules();
????
????se->start();
????
????se::AutoHandleScope?hs;
????jsb_run_script(“jsb-adapter/jsb-builtin.js“);
????jsb_run_script(“main.js“);
????
????se->addAfterCleanupHook([]()?{
????????JSBClassType::destroy();
????});
????
????return?true;
}

//?This?function?will?be?called?when?the?app?is?inactive.?When?comes?a?phone?callit‘s?be?invoked?too
void?AppDelegate::applicationDidEnterBackground()
{
????EventDispatcher::dispatchEnterBackgroundEvent();
}

//?this?function?will?be?called?when?the?app?is?active?again
void?AppDelegate::applicationWillEnterForeg

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-11-12?16:19??typescript\
?????目錄???????????0??2019-11-12?16:03??typescript\settings\
?????文件??????????63??2019-11-28?10:20??typescript\settings\services.json
?????文件?????????697??2019-11-28?10:20??typescript\settings\project.json
?????文件?????????177??2019-11-12?16:01??typescript\settings\builder.panel.json
?????文件????????1015??2019-11-13?11:39??typescript\settings\builder.json
?????文件?????????266??2019-11-12?16:02??typescript\jsconfig.json
?????文件??????899959??2019-11-12?16:02??typescript\creator.d.ts
?????目錄???????????0??2019-11-28?10:20??typescript\temp\
?????目錄???????????0??2019-11-12?16:01??typescript\temp\gltf\
?????目錄???????????0??2019-11-12?16:01??typescript\temp\gltf\fc4ca9cec690da6b32ec71fbe10aef05_out\
?????文件???????19773??2019-11-14?11:08??typescript\temp\gltf\fc4ca9cec690da6b32ec71fbe10aef05_out\fc4ca9cec690da6b32ec71fbe10aef05.gltf
?????文件??????161028??2019-11-14?11:08??typescript\temp\gltf\fc4ca9cec690da6b32ec71fbe10aef05_out\buffer.bin
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\assets\
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\config\
?????文件????????1519??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\config\AppConfig.js
?????文件????????1213??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\config\AppConfig.js.map
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\
?????文件????????8742??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\Network.js.map
?????文件????????2025??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\NetUtil.js
?????文件?????????848??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\NetUtil.js.map
?????文件???????10335??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\Socket.js.map
?????文件????????6266??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\Socket.js
?????文件????????5770??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\network\Network.js
?????目錄???????????0??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\message\
?????文件?????????883??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\message\baseMsg.js
?????文件????????3529??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\message\MsgFactory.js
?????文件?????????794??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\message\baseMsg.js.map
?????文件???????18400??2019-11-28?10:20??typescript\temp\quick-scripts\assets\script\message\ByteArray.js
............此處省略894個文件信息

評論

共有 條評論