Lua中調用CPlusPlus方法

【本文由“木易林”發(fā)布,2017年02月07日】

目前項目摹闽,使用了Lua腳本蹄咖,至于使用Lua的好處不再贅述了。于是對Tolua做了一些小小的學習付鹿,總結一下吧澜汤。

主要說一下如何在Lua中調用C++方法。

Lua調用C++的橋梁舵匾,是tolua俊抵。

我們需要手動做的,其實便是編寫中間類坐梯,這個類被tolua直接使用徽诲,最終的目的是實現(xiàn)lua中對象方法和C++中對象方法的對應。

LuaCocos2d.cpp 完成了所有基本的cocos對象方法的轉換吵血,我們把它稱之為一個橋梁谎替。LuaCocos2d.cpp 是在CCLuaStack 中的init函數(shù)中調用的。

1

tolua_Cocos2d_open(m_state);

1.CCLuaStack 中調用中間橋梁(比如LuaCocos2d)

2.橋梁里面(比如LuaCocos2d)實現(xiàn)各種方法的轉換

這樣蹋辅,整個的重點就是橋梁的生成了院喜。

看一下LuaCocos2d ,最重要的方法我認為是tolua_reg_types晕翠。

/* function to register type */

staticvoidtolua_reg_types (lua_State* tolua_S)

{

tolua_usertype(tolua_S,"CCTransitionProgressOutIn");

tolua_usertype(tolua_S,"CCControlSaturationBrightnessPicker");

tolua_usertype(tolua_S,"CCShaky3D");

tolua_usertype(tolua_S,"CCTransitionTurnOffTiles");

tolua_usertype(tolua_S,"CCTransitionShrinkGrow");

tolua_usertype(tolua_S,"CCFadeOutBLTiles");

tolua_usertype(tolua_S,"CCProgressFromTo");

tolua_usertype(tolua_S,"CCActionCamera");

tolua_usertype(tolua_S,"CCFlipY3D");

tolua_usertype(tolua_S,"CCLinkPosition");

tolua_usertype(tolua_S,"CCEaseExponentialIn");

tolua_usertype(tolua_S,"CCApplication");

tolua_usertype(tolua_S,"CCControlHuePicker");

tolua_usertype(tolua_S,"CCScaleTo");

tolua_usertype(tolua_S,"CCTransitionFlipAngular");

tolua_usertype(tolua_S,"CCEaseElasticOut");

tolua_usertype(tolua_S,"CCAccelDeccelAmplitude");

tolua_usertype(tolua_S,"CCDisplayData");

tolua_usertype(tolua_S,"CCParticleRain");

tolua_usertype(tolua_S,"CCTransitionSlideInB");

tolua_usertype(tolua_S,"CCKeypadDispatcher");

tolua_usertype(tolua_S,"CCDelayTime");

tolua_usertype(tolua_S,"CCOrbitCamera");

tolua_usertype(tolua_S,"CCLabelTTF");

tolua_usertype(tolua_S,"CCScale9Sprite");

tolua_usertype(tolua_S,"CCMoveTo");

tolua_usertype(tolua_S,"CCTransitionSplitRows");

tolua_usertype(tolua_S,"CCFollow");

tolua_usertype(tolua_S,"CCMovementData");

tolua_usertype(tolua_S,"CCBlink");

tolua_usertype(tolua_S,"CCTexture2D");

tolua_usertype(tolua_S,"CCTouch");

tolua_usertype(tolua_S,"CCParticleSystemQuad");

tolua_usertype(tolua_S,"CCTransitionMoveInB");

tolua_usertype(tolua_S,"CCToggleVisibility");

tolua_usertype(tolua_S,"cc_timeval");

tolua_usertype(tolua_S,"CCTMXTilesetInfo");

tolua_usertype(tolua_S,"CCParticleSun");

tolua_usertype(tolua_S,"CCScene");

tolua_usertype(tolua_S,"CCArmatureDataManager");

tolua_usertype(tolua_S,"CCFadeIn");

tolua_usertype(tolua_S,"CCTransitionFadeDown");

tolua_usertype(tolua_S,"CCWavesTiles3D");

tolua_usertype(tolua_S,"CCFadeOutDownTiles");

tolua_usertype(tolua_S,"CCComponentContainer");

tolua_usertype(tolua_S,"CCTMXTiledMap");

tolua_usertype(tolua_S,"CCCardinalSplineBy");

tolua_usertype(tolua_S,"CCTransitionZoomFlipAngular");

tolua_usertype(tolua_S,"CCFlipY");

tolua_usertype(tolua_S,"CCProgressTo");

tolua_usertype(tolua_S,"CCReuseGrid");

tolua_usertype(tolua_S,"CCShow");

tolua_usertype(tolua_S,"CCEaseRateAction");

tolua_usertype(tolua_S,"CCEaseBackIn");

tolua_usertype(tolua_S,"CCTransitionScene");

tolua_usertype(tolua_S,"CCGridAction");

tolua_usertype(tolua_S,"CCFiniteTimeAction");

tolua_usertype(tolua_S,"CCSpriteFrameCache");

tolua_usertype(tolua_S,"CCMotionStreak");

tolua_usertype(tolua_S,"CCAnimate");

tolua_usertype(tolua_S,"CCTiledGrid3DAction");

tolua_usertype(tolua_S,"CCPointArray");

tolua_usertype(tolua_S,"CCTransitionProgressHorizontal");

tolua_usertype(tolua_S,"CCRectShape");

tolua_usertype(tolua_S,"ccColor3B");

tolua_usertype(tolua_S,"CCTextureCache");

tolua_usertype(tolua_S,"CCDevice");

tolua_usertype(tolua_S,"CCFadeOutTRTiles");

tolua_usertype(tolua_S,"CCMenuItemSprite");

tolua_usertype(tolua_S,"CCEaseExponentialInOut");

tolua_usertype(tolua_S,"CCFadeOutUpTiles");

tolua_usertype(tolua_S,"CCWaves3D");

tolua_usertype(tolua_S,"ccBlendFunc");

tolua_usertype(tolua_S,"CCImage");

tolua_usertype(tolua_S,"CCLens3D");

tolua_usertype(tolua_S,"CCTintBy");

tolua_usertype(tolua_S,"CCBool");

tolua_usertype(tolua_S,"CCPoint");

tolua_usertype(tolua_S,"CCParticleMeteor");

tolua_usertype(tolua_S,"CCEaseElasticIn");

tolua_usertype(tolua_S,"CCEaseSineIn");

tolua_usertype(tolua_S,"CCCardinalSplineTo");

tolua_usertype(tolua_S,"CCFloat");

tolua_usertype(tolua_S,"CCWaves");

tolua_usertype(tolua_S,"CCParticleFireworks");

tolua_usertype(tolua_S,"CCEvent");

tolua_usertype(tolua_S,"CCBaseData");

tolua_usertype(tolua_S,"CCActionInterval");

tolua_usertype(tolua_S,"CCRenderTexture");

tolua_usertype(tolua_S,"CCObject");

tolua_usertype(tolua_S,"CCEaseBackInOut");

tolua_usertype(tolua_S,"CCAtlasNode");

tolua_usertype(tolua_S,"CCEaseBackOut");

tolua_usertype(tolua_S,"CCSize");

tolua_usertype(tolua_S,"CCInteger");

tolua_usertype(tolua_S,"CCParticleFlower");

tolua_usertype(tolua_S,"CCLiquid");

tolua_usertype(tolua_S,"CCEaseBounce");

tolua_usertype(tolua_S,"CCSpeed");

tolua_usertype(tolua_S,"CCFrameData");

tolua_usertype(tolua_S,"CCTransitionMoveInL");

tolua_usertype(tolua_S,"CCSpriteFrame");

tolua_usertype(tolua_S,"CCJumpBy");

tolua_usertype(tolua_S,"CCTransitionFadeTR");

tolua_usertype(tolua_S,"CCControlUtils");

tolua_usertype(tolua_S,"CCGridBase");

tolua_usertype(tolua_S,"RGBA");

tolua_usertype(tolua_S,"CCParticleDisplayData");

tolua_usertype(tolua_S,"SimpleAudioEngine");

tolua_usertype(tolua_S,"CCNotificationCenter");

tolua_usertype(tolua_S,"CCPointShape");

tolua_usertype(tolua_S,"CCSpriteBatchNode");

tolua_usertype(tolua_S,"CCEaseSineInOut");

tolua_usertype(tolua_S,"ccFontShadow");

tolua_usertype(tolua_S,"CCTwirl");

tolua_usertype(tolua_S,"CCCircleShape");

tolua_usertype(tolua_S,"CCDrawNode");

tolua_usertype(tolua_S,"CCControlColourPicker");

tolua_usertype(tolua_S,"CCMenuItemLabel");

tolua_usertype(tolua_S,"CCDouble");

tolua_usertype(tolua_S,"CCTargetedAction");

tolua_usertype(tolua_S,"CCGrid3DAction");

tolua_usertype(tolua_S,"CCString");

tolua_usertype(tolua_S,"CCRemoveSelf");

tolua_usertype(tolua_S,"CCAnimationData");

tolua_usertype(tolua_S,"CCTransitionMoveInR");

tolua_usertype(tolua_S,"CCTransitionFade");

tolua_usertype(tolua_S,"CCSkewBy");

tolua_usertype(tolua_S,"CCFlipX");

tolua_usertype(tolua_S,"CCActionManager");

tolua_usertype(tolua_S,"CCTransitionSlideInT");

tolua_usertype(tolua_S,"CCCatmullRomTo");

tolua_usertype(tolua_S,"CCPolygonShape");

tolua_usertype(tolua_S,"CCTransitionSceneOriented");

tolua_usertype(tolua_S,"CCAnimationCache");

tolua_usertype(tolua_S,"CCComponent");

tolua_usertype(tolua_S,"CCTransitionSlideInR");

tolua_usertype(tolua_S,"CCTransitionMoveInT");

tolua_usertype(tolua_S,"CCLayerGradient");

tolua_usertype(tolua_S,"CCShapeNode");

tolua_usertype(tolua_S,"CCStopGrid");

tolua_usertype(tolua_S,"CCTMXMapInfo");

tolua_usertype(tolua_S,"CCConfiguration");

tolua_usertype(tolua_S,"CCLayerColor");

tolua_usertype(tolua_S,"CCMenuItemFont");

tolua_usertype(tolua_S,"CCTransitionFadeUp");

tolua_usertype(tolua_S,"CCTransitionProgressVertical");

tolua_usertype(tolua_S,"CCAccelerometer");

tolua_usertype(tolua_S,"CCProcessBase");

tolua_usertype(tolua_S,"CCRect");

tolua_usertype(tolua_S,"CCActionInstant");

tolua_usertype(tolua_S,"CCTurnOffTiles");

tolua_usertype(tolua_S,"CCParticleSnow");

tolua_usertype(tolua_S,"CCMenuItemImage");

tolua_usertype(tolua_S,"ccTexParams");

tolua_usertype(tolua_S,"CCEaseSineOut");

tolua_usertype(tolua_S,"CCCallFuncN");

tolua_usertype(tolua_S,"CCTransitionPageTurn");

tolua_usertype(tolua_S,"ccFontDefinition");

tolua_usertype(tolua_S,"ccFontStroke");

tolua_usertype(tolua_S,"CCTintTo");

tolua_usertype(tolua_S,"CCTransitionCrossFade");

tolua_usertype(tolua_S,"CCClippingRegionNode");

tolua_usertype(tolua_S,"CCActionEase");

tolua_usertype(tolua_S,"CCBone");

tolua_usertype(tolua_S,"CCParallaxNode");

tolua_usertype(tolua_S,"CCRotateTo");

tolua_usertype(tolua_S,"CCArmature");

tolua_usertype(tolua_S,"CCBatchNode");

tolua_usertype(tolua_S,"CCMovementBoneData");

tolua_usertype(tolua_S,"CCShakyTiles3D");

tolua_usertype(tolua_S,"CCArmatureDisplayData");

tolua_usertype(tolua_S,"CCNode");

tolua_usertype(tolua_S,"CCArmatureData");

tolua_usertype(tolua_S,"CCArmatureAnimation");

tolua_usertype(tolua_S,"CCSpriteDisplayData");

tolua_usertype(tolua_S,"CCBezierTo");

tolua_usertype(tolua_S,"CCDeccelAmplitude");

tolua_usertype(tolua_S,"CCTweenType");

tolua_usertype(tolua_S,"CCBoneData");

tolua_usertype(tolua_S,"CCTableView");

tolua_usertype(tolua_S,"CCTableViewCell");

tolua_usertype(tolua_S,"CCTransitionProgress");

tolua_usertype(tolua_S,"CCEditBox");

tolua_usertype(tolua_S,"HSV");

tolua_usertype(tolua_S,"CCRotateBy");

tolua_usertype(tolua_S,"CCControlStepper");

tolua_usertype(tolua_S,"CCControlSlider");

tolua_usertype(tolua_S,"CCMoveBy");

tolua_usertype(tolua_S,"CCParticleGalaxy");

tolua_usertype(tolua_S,"CCCamera");

tolua_usertype(tolua_S,"CCSequence");

tolua_usertype(tolua_S,"CCTileMapAtlas");

tolua_usertype(tolua_S,"tCCParticle");

tolua_usertype(tolua_S,"CCCatmullRomBy");

tolua_usertype(tolua_S,"CCHide");

tolua_usertype(tolua_S,"CCControlButton");

tolua_usertype(tolua_S,"CCJumpTiles3D");

tolua_usertype(tolua_S,"CCTransitionJumpZoom");

tolua_usertype(tolua_S,"CCTMXLayer");

tolua_usertype(tolua_S,"CCControl");

tolua_usertype(tolua_S,"AssetsManager");

tolua_usertype(tolua_S,"CCScheduler");

tolua_usertype(tolua_S,"CCDirector");

tolua_usertype(tolua_S,"CCMenuItemToggle");

tolua_usertype(tolua_S,"CCEGLView");

tolua_usertype(tolua_S,"ccBezierConfig");

tolua_usertype(tolua_S,"CCFadeTo");

tolua_usertype(tolua_S,"CCTouchDispatcher");

tolua_usertype(tolua_S,"CCMenuItemAtlasFont");

tolua_usertype(tolua_S,"SEL_MenuHandler");

tolua_usertype(tolua_S,"CCEventDispatcher");

tolua_usertype(tolua_S,"CCParticleSystem");

tolua_usertype(tolua_S,"CCJumpTo");

tolua_usertype(tolua_S,"CCMenu");

tolua_usertype(tolua_S,"ccColor4F");

tolua_usertype(tolua_S,"CCEaseExponentialOut");

tolua_usertype(tolua_S,"CCSet");

tolua_usertype(tolua_S,"CCCallFunc");

tolua_usertype(tolua_S,"CCLabelAtlas");

tolua_usertype(tolua_S,"CCLabelBMFont");

tolua_usertype(tolua_S,"CCEaseBounceIn");

tolua_usertype(tolua_S,"CCPlace");

tolua_usertype(tolua_S,"CCSprite");

tolua_usertype(tolua_S,"CCFileUtils");

tolua_usertype(tolua_S,"CCLayer");

tolua_usertype(tolua_S,"CCTransitionSplitCols");

tolua_usertype(tolua_S,"CCPageTurn3D");

tolua_usertype(tolua_S,"CCEaseIn");

tolua_usertype(tolua_S,"CCTransitionProgressRadialCW");

tolua_usertype(tolua_S,"CCEaseElastic");

tolua_usertype(tolua_S,"CCTransitionProgressRadialCCW");

tolua_usertype(tolua_S,"CCEaseOut");

tolua_usertype(tolua_S,"CCBezierBy");

tolua_usertype(tolua_S,"CCScrollView");

tolua_usertype(tolua_S,"CCUserDefault");

tolua_usertype(tolua_S,"CCProgressTimer");

tolua_usertype(tolua_S,"CCDictionary");

tolua_usertype(tolua_S,"CCParticleFire");

tolua_usertype(tolua_S,"CCTransitionFlipY");

tolua_usertype(tolua_S,"CCTMXLayerInfo");

tolua_usertype(tolua_S,"CCTransitionFadeBL");

tolua_usertype(tolua_S,"CCShuffleTiles");

tolua_usertype(tolua_S,"CCTransitionSlideInL");

tolua_usertype(tolua_S,"CCRipple3D");

tolua_usertype(tolua_S,"CCRepeat");

tolua_usertype(tolua_S,"CCClippingNode");

tolua_usertype(tolua_S,"CCTransitionProgressInOut");

tolua_usertype(tolua_S,"CCParticleSpiral");

tolua_usertype(tolua_S,"CCTransitionZoomFlipY");

tolua_usertype(tolua_S,"CCEaseBounceInOut");

tolua_usertype(tolua_S,"CCTransitionZoomFlipX");

tolua_usertype(tolua_S,"CCTransitionFlipX");

tolua_usertype(tolua_S,"CCSpawn");

tolua_usertype(tolua_S,"CCTransitionRotoZoom");

tolua_usertype(tolua_S,"CCEaseInOut");

tolua_usertype(tolua_S,"CCShatteredTiles3D");

tolua_usertype(tolua_S,"CCAccelAmplitude");

tolua_usertype(tolua_S,"CCParticleSmoke");

tolua_usertype(tolua_S,"CCTMXObjectGroup");

tolua_usertype(tolua_S,"CCFadeOut");

tolua_usertype(tolua_S,"CCLayerMultiplex");

tolua_usertype(tolua_S,"CCControlPotentiometer");

tolua_usertype(tolua_S,"CCParticleExplosion");

tolua_usertype(tolua_S,"CCGLProgram");

tolua_usertype(tolua_S,"CCMenuItem");

tolua_usertype(tolua_S,"ccColor4B");

tolua_usertype(tolua_S,"CCFlipX3D");

tolua_usertype(tolua_S,"CCSplitRows");

tolua_usertype(tolua_S,"CCArray");

tolua_usertype(tolua_S,"CCReverseTime");

tolua_usertype(tolua_S,"CCSkewTo");

tolua_usertype(tolua_S,"CCParticleBatchNode");

tolua_usertype(tolua_S,"CCGraySprite");

tolua_usertype(tolua_S,"CCAnimation");

tolua_usertype(tolua_S,"CCRepeatForever");

tolua_usertype(tolua_S,"CCTime");

tolua_usertype(tolua_S,"CCAction");

tolua_usertype(tolua_S,"CCTextFieldTTF");

tolua_usertype(tolua_S,"CCTextureAtlas");

tolua_usertype(tolua_S,"CCScaleBy");

tolua_usertype(tolua_S,"CCEaseElasticInOut");

tolua_usertype(tolua_S,"CCSplitCols");

tolua_usertype(tolua_S,"CCEaseBounceOut");

tolua_usertype(tolua_S,"CCAnimationFrame");

tolua_usertype(tolua_S,"CCControlSwitch");

}

拿CCLabelTTF舉例喷舀,你在里面搜便可以明白了。第一個參數(shù)先不用管淋肾,第二個是CCLabelTTF在調用的方法名硫麻,第三個參數(shù)便是這個文件中定義的方法,你找到一看便會明白了樊卓。

#ifdef __cplusplus

tolua_cclass(tolua_S,"CCLabelTTF","CCLabelTTF","CCSprite",tolua_collect_CCLabelTTF);

#else

tolua_cclass(tolua_S,"CCLabelTTF","CCLabelTTF","CCSprite",NULL);

#endif

tolua_beginmodule(tolua_S,"CCLabelTTF");

tolua_function(tolua_S,"new",tolua_Cocos2d_CCLabelTTF_new00);

tolua_function(tolua_S,"new_local",tolua_Cocos2d_CCLabelTTF_new00_local);

tolua_function(tolua_S,".call",tolua_Cocos2d_CCLabelTTF_new00_local);

tolua_function(tolua_S,"delete",tolua_Cocos2d_CCLabelTTF_delete00);

tolua_function(tolua_S,"create",tolua_Cocos2d_CCLabelTTF_create00);

tolua_function(tolua_S,"create",tolua_Cocos2d_CCLabelTTF_create01);

tolua_function(tolua_S,"create",tolua_Cocos2d_CCLabelTTF_create02);

tolua_function(tolua_S,"create",tolua_Cocos2d_CCLabelTTF_create03);

tolua_function(tolua_S,"initWithString",tolua_Cocos2d_CCLabelTTF_initWithString00);

tolua_function(tolua_S,"initWithString",tolua_Cocos2d_CCLabelTTF_initWithString01);

tolua_function(tolua_S,"initWithString",tolua_Cocos2d_CCLabelTTF_initWithString02);

tolua_function(tolua_S,"initWithStringAndTextDefinition",tolua_Cocos2d_CCLabelTTF_initWithStringAndTextDefinition00);

tolua_function(tolua_S,"init",tolua_Cocos2d_CCLabelTTF_init00);

tolua_function(tolua_S,"setTextDefinition",tolua_Cocos2d_CCLabelTTF_setTextDefinition00);

tolua_function(tolua_S,"getTextDefinition",tolua_Cocos2d_CCLabelTTF_getTextDefinition00);

tolua_function(tolua_S,"enableShadow",tolua_Cocos2d_CCLabelTTF_enableShadow00);

tolua_function(tolua_S,"disableShadow",tolua_Cocos2d_CCLabelTTF_disableShadow00);

tolua_function(tolua_S,"enableStroke",tolua_Cocos2d_CCLabelTTF_enableStroke00);

tolua_function(tolua_S,"disableStroke",tolua_Cocos2d_CCLabelTTF_disableStroke00);

tolua_function(tolua_S,"setFontFillColor",tolua_Cocos2d_CCLabelTTF_setFontFillColor00);

tolua_function(tolua_S,"setString",tolua_Cocos2d_CCLabelTTF_setString00);

tolua_function(tolua_S,"getString",tolua_Cocos2d_CCLabelTTF_getString00);

tolua_function(tolua_S,"getHorizontalAlignment",tolua_Cocos2d_CCLabelTTF_getHorizontalAlignment00);

tolua_function(tolua_S,"setHorizontalAlignment",tolua_Cocos2d_CCLabelTTF_setHorizontalAlignment00);

tolua_function(tolua_S,"getVerticalAlignment",tolua_Cocos2d_CCLabelTTF_getVerticalAlignment00);

tolua_function(tolua_S,"setVerticalAlignment",tolua_Cocos2d_CCLabelTTF_setVerticalAlignment00);

?tolua_function(tolua_S,"getDimensions",tolua_Cocos2d_CCLabelTTF_getDimensions00);

tolua_function(tolua_S,"setDimensions",tolua_Cocos2d_CCLabelTTF_setDimensions00);

tolua_function(tolua_S,"getFontSize",tolua_Cocos2d_CCLabelTTF_getFontSize00);

tolua_function(tolua_S,"setFontSize",tolua_Cocos2d_CCLabelTTF_setFontSize00);

tolua_function(tolua_S,"getFontName",tolua_Cocos2d_CCLabelTTF_getFontName00);

tolua_function(tolua_S,"setFontName",tolua_Cocos2d_CCLabelTTF_setFontName00);

tolua_endmodule(tolua_S);

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末拿愧,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子碌尔,更是在濱河造成了極大的恐慌浇辜,老刑警劉巖券敌,帶你破解...
    沈念sama閱讀 211,042評論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異柳洋,居然都是意外死亡待诅,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 89,996評論 2 384
  • 文/潘曉璐 我一進店門熊镣,熙熙樓的掌柜王于貴愁眉苦臉地迎上來卑雁,“玉大人,你說我怎么就攤上這事绪囱〔舛祝” “怎么了?”我有些...
    開封第一講書人閱讀 156,674評論 0 345
  • 文/不壞的土叔 我叫張陵鬼吵,是天一觀的道長扣甲。 經常有香客問我,道長齿椅,這世上最難降的妖魔是什么琉挖? 我笑而不...
    開封第一講書人閱讀 56,340評論 1 283
  • 正文 為了忘掉前任,我火速辦了婚禮媒咳,結果婚禮上粹排,老公的妹妹穿的比我還像新娘种远。我一直安慰自己涩澡,他們只是感情好,可當我...
    茶點故事閱讀 65,404評論 5 384
  • 文/花漫 我一把揭開白布坠敷。 她就那樣靜靜地躺著妙同,像睡著了一般。 火紅的嫁衣襯著肌膚如雪膝迎。 梳的紋絲不亂的頭發(fā)上粥帚,一...
    開封第一講書人閱讀 49,749評論 1 289
  • 那天,我揣著相機與錄音限次,去河邊找鬼芒涡。 笑死,一個胖子當著我的面吹牛卖漫,可吹牛的內容都是我干的费尽。 我是一名探鬼主播,決...
    沈念sama閱讀 38,902評論 3 405
  • 文/蒼蘭香墨 我猛地睜開眼羊始,長吁一口氣:“原來是場噩夢啊……” “哼旱幼!你這毒婦竟也來了?” 一聲冷哼從身側響起突委,我...
    開封第一講書人閱讀 37,662評論 0 266
  • 序言:老撾萬榮一對情侶失蹤柏卤,失蹤者是張志新(化名)和其女友劉穎冬三,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體缘缚,經...
    沈念sama閱讀 44,110評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡勾笆,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 36,451評論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了忙灼。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片匠襟。...
    茶點故事閱讀 38,577評論 1 340
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖该园,靈堂內的尸體忽然破棺而出酸舍,到底是詐尸還是另有隱情,我是刑警寧澤里初,帶...
    沈念sama閱讀 34,258評論 4 328
  • 正文 年R本政府宣布啃勉,位于F島的核電站,受9級特大地震影響双妨,放射性物質發(fā)生泄漏淮阐。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 39,848評論 3 312
  • 文/蒙蒙 一刁品、第九天 我趴在偏房一處隱蔽的房頂上張望泣特。 院中可真熱鬧,春花似錦挑随、人聲如沸状您。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,726評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽膏孟。三九已至,卻和暖如春拌汇,著一層夾襖步出監(jiān)牢的瞬間柒桑,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,952評論 1 264
  • 我被黑心中介騙來泰國打工噪舀, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留魁淳,地道東北人。 一個月前我還...
    沈念sama閱讀 46,271評論 2 360
  • 正文 我出身青樓与倡,卻偏偏與公主長得像界逛,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子蒸走,可洞房花燭夜當晚...
    茶點故事閱讀 43,452評論 2 348

推薦閱讀更多精彩內容

  • ¥開啟¥ 【iAPP實現(xiàn)進入界面執(zhí)行逐一顯】 〖2017-08-25 15:22:14〗 《//首先開一個線程仇奶,因...
    小菜c閱讀 6,365評論 0 17
  • 標簽(空格分隔): tolua++技術分析 cocos2dx+lua 前言 一直都使用 cocos2dx + lu...
    芒果有點甜閱讀 3,000評論 0 2
  • 1.1程序塊:Lua執(zhí)行的每段代碼,例如一個源代碼文件或者交互模式中輸入的一行代碼,都稱為一個程序塊 1.2注釋:...
    c_xiaoqiang閱讀 2,587評論 0 9
  • 第一篇 語言 第0章 序言 Lua僅讓你用少量的代碼解決關鍵問題该溯。 Lua所提供的機制是C不擅長的:高級語言岛抄,動態(tài)...
    testfor閱讀 2,657評論 1 7
  • 盛夏初生 激蕩著朦朧情愫 微風十里 都不及你的暖 欲做矜持 待你撩而動你心 始料未及 有著不可抗拒的魅力 花兒開在...
    記得Zhu閱讀 264評論 3 1