当前位置: 首页>>代码示例>>C#>>正文


C# CCBReader类代码示例

本文整理汇总了C#中CCBReader的典型用法代码示例。如果您正苦于以下问题:C# CCBReader类的具体用法?C# CCBReader怎么用?C# CCBReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CCBReader类属于命名空间,在下文中一共展示了CCBReader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnHandlePropTypeCheck

 protected override void OnHandlePropTypeCheck(CCNode node, CCNode parent, string propertyName, bool pCheck, CCBReader reader)
 {
     if (propertyName == PROPERTY_TOUCH_ENABLED)
     {
         ((CCLayer) node).TouchEnabled = pCheck;
     }
     else if (propertyName == PROPERTY_ACCELEROMETER_ENABLED)
     {
         ((CCLayer) node).AccelerometerEnabled = pCheck;
     }
     else if (propertyName == PROPERTY_MOUSE_ENABLED)
     {
         // TODO XXX
         CCLog.Log("The property '{0}' is not supported!", PROPERTY_MOUSE_ENABLED);
     }
     else if (propertyName == PROPERTY_KEYBOARD_ENABLED)
     {
         // TODO XXX
         CCLog.Log("The property '{0}' is not supported!", PROPERTY_KEYBOARD_ENABLED);
         // This comes closest: ((CCLayer *)node).setKeypadEnabled(pCheck);
     }
     else
     {
         base.OnHandlePropTypeCheck(node, parent, propertyName, pCheck, reader);
     }
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:26,代码来源:CCLayerLoader.cs

示例2: OnHandlePropTypeText

 protected override void OnHandlePropTypeText(CCNode node, CCNode parent, string propertyName, string pText, CCBReader reader)
 {
     if (propertyName == PROPERTY_STRING)
     {
         ((CCLabelBMFont) node).Label = (pText);
     }
     else
     {
         base.OnHandlePropTypeText(node, parent, propertyName, pText, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs

示例3: OnHandlePropTypeByte

 protected override void OnHandlePropTypeByte(CCNode node, CCNode parent, string propertyName, byte pByte, CCBReader reader)
 {
     if (propertyName == PROPERTY_OPACITY)
     {
         ((CCLabelBMFont) node).Opacity = pByte;
     }
     else
     {
         base.OnHandlePropTypeByte(node, parent, propertyName, pByte, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs

示例4: OnHandlePropTypeCCBFile

 protected override void OnHandlePropTypeCCBFile(CCNode node, CCNode parent, string propertyName, CCNode fileNode, CCBReader reader)
 {
     if (propertyName == PROPERTY_CCBFILE)
     {
         ((CCBFile) node).FileNode = fileNode;
     }
     else
     {
         base.OnHandlePropTypeCCBFile(node, parent, propertyName, fileNode, reader);
     }
 }
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:11,代码来源:CCBFileLoader.cs

示例5: OnHandlePropTypeCheck

 protected override void OnHandlePropTypeCheck(CCNode node, CCNode parent, string propertyName, bool pCheck, CCBReader reader)
 {
     if (propertyName == PROPERTY_ZOOMONTOUCHDOWN)
     {
         ((CCControlButton) node).ZoomOnTouchDown = pCheck;
     }
     else
     {
         base.OnHandlePropTypeCheck(node, parent, propertyName, pCheck, reader);
     }
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCControlButtonLoader.cs

示例6: OnHandlePropTypeInteger

 protected override void OnHandlePropTypeInteger(CCNode node, CCNode parent, string propertyName, int pInteger, CCBReader reader)
 {
     if (propertyName == PROPERTY_TOTALPARTICLES)
     {
         ((CCParticleSystemQuad) node).TotalParticles = pInteger;
     }
     else
     {
         base.OnHandlePropTypeInteger(node, parent, propertyName, pInteger, reader);
     }
 }
开发者ID:KerwinMa,项目名称:CocosSharp,代码行数:11,代码来源:CCParticleSystemQuadLoader.cs

示例7: OnHandlePropTypeFloatScale

 protected override void OnHandlePropTypeFloatScale(CCNode node, CCNode parent, string propertyName, float floatScale, CCBReader reader)
 {
     if (propertyName == PROPERTY_FONTSIZE)
     {
         ((CCLabelTTF) node).FontSize = floatScale;
     }
     else
     {
         base.OnHandlePropTypeFloatScale(node, parent, propertyName, floatScale, reader);
     }
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelTTFLoader.cs

示例8: OnHandlePropTypeFontTTF

 protected override void OnHandlePropTypeFontTTF(CCNode node, CCNode parent, string propertyName, string fontTTF, CCBReader reader)
 {
     if (propertyName == PROPERTY_FONTNAME)
     {
         ((CCLabelTTF) node).FontName = fontTTF;
     }
     else
     {
         base.OnHandlePropTypeFontTTF(node, parent, propertyName, fontTTF, reader);
     }
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelTTFLoader.cs

示例9: OnHandlePropTypeColor3

 protected override void OnHandlePropTypeColor3(CCNode node, CCNode parent, string propertyName, CCColor3B color, CCBReader reader)
 {
     if (propertyName == PROPERTY_COLOR)
     {
         ((CCLabelBMFont) node).Color = color;
     }
     else
     {
         base.OnHandlePropTypeColor3(node, parent, propertyName, color, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs

示例10: OnHandlePropTypeFntFile

 protected override void OnHandlePropTypeFntFile(CCNode node, CCNode parent, string propertyName, string pFntFile, CCBReader reader)
 {
     if (propertyName == PROPERTY_FNTFILE)
     {
         ((CCLabelBMFont) node).FntFile = pFntFile;
     }
     else
     {
         base.OnHandlePropTypeFntFile(node, parent, propertyName, pFntFile, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs

示例11: OnHandlePropTypeSpriteFrame

 protected override void OnHandlePropTypeSpriteFrame(CCNode node, CCNode parent, string propertyName, CCSpriteFrame spriteFrame,
                                                     CCBReader reader)
 {
     if (propertyName == PROPERTY_SPRITEFRAME)
     {
         ((CCScale9Sprite) node).InitWithSpriteFrame(spriteFrame);
     }
     else
     {
         base.OnHandlePropTypeSpriteFrame(node, parent, propertyName, spriteFrame, reader);
     }
 }
开发者ID:KerwinMa,项目名称:CocosSharp,代码行数:12,代码来源:CCScale9SpriteLoader.cs

示例12: OnHandlePropTypeIntegerLabeled

 protected override void OnHandlePropTypeIntegerLabeled(CCNode node, CCNode parent, string propertyName, int pIntegerLabeled,
                                                        CCBReader reader)
 {
     if (propertyName == PROPERTY_EMITERMODE)
     {
         ((CCParticleSystemQuad) node).EmitterMode = (CCEmitterMode) pIntegerLabeled;
     }
     else
     {
         base.OnHandlePropTypeIntegerLabeled(node, parent, propertyName, pIntegerLabeled, reader);
     }
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:12,代码来源:CCParticleSystemQuadLoader.cs

示例13: OnHandlePropTypeSpriteFrame

 protected override void OnHandlePropTypeSpriteFrame(CCNode node, CCNode parent, string propertyName, CCSpriteFrame spriteFrame,
                                                     CCBReader reader)
 {
     if (propertyName == PROPERTY_DISPLAYFRAME)
     {
         ((CCSprite) node).DisplayFrame = spriteFrame;
     }
     else
     {
         base.OnHandlePropTypeSpriteFrame(node, parent, propertyName, spriteFrame, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCSpriteLoader.cs

示例14: OnHandlePropTypeFlip

 protected override void OnHandlePropTypeFlip(CCNode node, CCNode parent, string propertyName, bool[] pFlip, CCBReader reader)
 {
     if (propertyName == PROPERTY_FLIP)
     {
         ((CCSprite) node).FlipX = pFlip[0];
         ((CCSprite) node).FlipY = pFlip[1];
     }
     else
     {
         base.OnHandlePropTypeFlip(node, parent, propertyName, pFlip, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCSpriteLoader.cs

示例15: OnHandlePropTypeBlendFunc

 protected override void OnHandlePropTypeBlendFunc(CCNode node, CCNode parent, string propertyName, CCBlendFunc blendFunc,
                                                   CCBReader reader)
 {
     if (propertyName == PROPERTY_BLENDFUNC)
     {
         ((CCLabelBMFont) node).BlendFunc = blendFunc;
     }
     else
     {
         base.OnHandlePropTypeBlendFunc(node, parent, propertyName, blendFunc, reader);
     }
 }
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCLabelBMFontLoader.cs


注:本文中的CCBReader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。