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


C# ICCCopyable类代码示例

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


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

示例1: Copy

        public override object Copy(ICCCopyable zone)
        {
            if (zone != null)
            {
                var ret = zone as CCSpawn;
                if (ret == null)
                {
                    return null;
                }
				base.Copy(zone);
				
				var param1 = m_pOne.Copy() as CCFiniteTimeAction;
				var param2 = m_pTwo.Copy() as CCFiniteTimeAction;
				if (param1 == null || param2 == null)
				{
					return null;
				}
				
				ret.InitOneTwo(param1, param2);
				
				return ret;
			}
            else
            {
                return new CCSpawn(this);
            }

        }
开发者ID:pekayatt,项目名称:cocos2d-xna,代码行数:28,代码来源:CCSpawn.cs

示例2: Copy

        public override object Copy(ICCCopyable zone)
        {
            ICCCopyable tmpZone = zone;
            CCSequence ret;

            if (tmpZone != null && tmpZone != null)
            {
                ret = tmpZone as CCSequence;
                if (ret == null)
                {
                    return null;
                }
                base.Copy(tmpZone);

                var param1 = m_pActions[0].Copy() as CCFiniteTimeAction;
                var param2 = m_pActions[1].Copy() as CCFiniteTimeAction;

                if (param1 == null || param2 == null)
                {
                    return null;
                }

                ret.InitOneTwo(param1, param2);

                return ret;
            }
            else
            {
                return new CCSequence(this);
            }
        }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:31,代码来源:CCSequence.cs

示例3: Copy

        public override object Copy(ICCCopyable zone)
        {
            if (zone != null)
            {
                var ret = zone as CCRepeatForever;
                if (ret == null)
                {
                    return null;
                }
                base.Copy(zone);

                var param = m_pInnerAction.Copy() as CCActionInterval;
                if (param == null)
                {
                    return null;
                }
                ret.InitWithAction(param);

                return ret;
            }
            else
            {
                return new CCRepeatForever(this);
            }
        }
开发者ID:Karunp,项目名称:cocos2d-xna,代码行数:25,代码来源:CCRepeatForever.cs

示例4: Copy

        public override object Copy(ICCCopyable zone)
        {

            if (zone != null)
            {
                var ret = zone as CCRepeat;
                if (ret == null)
                {
                    return null;
                }
                base.Copy(zone);
                
                var param = m_pInnerAction.Copy() as CCFiniteTimeAction;
                if (param == null)
                {
                    return null;
                }
                ret.InitWithAction(param, m_uTimes);
                
                return ret;
            }
            else
            {
                return new CCRepeat(this);
            }

        }
开发者ID:pekayatt,项目名称:cocos2d-xna,代码行数:27,代码来源:CCRepeat.cs

示例5: Copy

        public override object Copy(ICCCopyable zone)
        {

            if (zone != null)
            {
                var ret = zone as CCMoveBy;

                if (ret == null)
                {
                    return null;
                }

                base.Copy(zone);
                
                ret.InitWithDuration(m_fDuration, m_delta);
                
                return ret;
            }
            else
            {
                return new CCMoveBy(this);
            }


        }
开发者ID:pekayatt,项目名称:cocos2d-xna,代码行数:25,代码来源:CCMoveBy.cs

示例6: Copy

 public override object Copy(ICCCopyable zone)
 {
     if (zone != null)
     {
         var ret = (CCToggleVisibility) zone;
         base.Copy(zone);
         return ret;
     }
     return new CCToggleVisibility(this);
 }
开发者ID:Karunp,项目名称:cocos2d-xna,代码行数:10,代码来源:CCToggleVisibility.cs

示例7: Copy

 public override object Copy(ICCCopyable zone)
 {
     if (zone != null)
     {
         var ret = (CCActionInstant) zone;
         base.Copy(zone);
         return ret;
     }
     return new CCActionInstant(this);
 }
开发者ID:Karunp,项目名称:cocos2d-xna,代码行数:10,代码来源:CCActionInstant.cs

示例8: Copy

 public override object Copy(ICCCopyable pZone)
 {
     if (pZone != null)
     {
         var pRet = (CCHide) (pZone);
         base.Copy(pZone);
         return pRet;
     }
     return new CCHide(this);
 }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:10,代码来源:CCHide.cs

示例9: Copy

 public override object Copy(ICCCopyable pZone)
 {
     if (pZone != null)
     {
         var pRet = (CCPlace) (pZone);
         base.Copy(pZone);
         pRet.InitWithPosition(m_tPosition);
         return pRet;
     }
     return new CCPlace(this);
 }
开发者ID:rtabbara,项目名称:cocos2d-xna,代码行数:11,代码来源:CCPlace.cs

示例10: Copy

 public override object Copy(ICCCopyable zone)
 {
     if (zone != null)
     {
         var ret = (CCRemoveSelf) zone;
         base.Copy(zone);
         ret.Init(m_bIsNeedCleanUp);
         return ret;
     }
     return new CCRemoveSelf(this);
 }
开发者ID:Karunp,项目名称:cocos2d-xna,代码行数:11,代码来源:CCRemoveSelf.cs

示例11: Copy

 public override object Copy(ICCCopyable pZone)
 {
     if (pZone != null)
     {
         var pRet = (CCFlipX) (pZone);
         base.Copy(pZone);
         pRet.InitWithFlipX(m_bFlipX);
         return pRet;
     }
     return new CCFlipX(this);
 }
开发者ID:261117370,项目名称:cocos2d-xna,代码行数:11,代码来源:CCFlipX.cs

示例12: Copy

 public virtual object Copy(ICCCopyable zone)
 {
     if (zone != null)
     {
         ((CCAction) zone).m_nTag = m_nTag;
         return zone;
     }
     else
     {
         return new CCAction(this);
     }
 }
开发者ID:rtabbara,项目名称:cocos2d-xna,代码行数:12,代码来源:CCAction.cs

示例13: Copy

 public override object Copy(ICCCopyable pZone)
 {
     if (pZone != null) //in case of being called at sub class
     {
         var pRet = (CCTargetedAction) (pZone);
         base.Copy(pZone);
         // win32 : use the m_pOther's copy object.
         pRet.InitWithTarget(m_pForcedTarget, (CCFiniteTimeAction) m_pAction.Copy());
         return pRet;
     }
     return new CCTargetedAction(this);
 }
开发者ID:rtabbara,项目名称:cocos2d-xna,代码行数:12,代码来源:CCTargetedAction.cs

示例14: Copy

        public override object Copy(ICCCopyable zone)
        {
            if (zone != null && zone != null)
            {
                var ret = zone as CCBezierTo;
                base.Copy(zone);
                ret.InitWithDuration(m_fDuration, m_sConfig);

                return ret;
            }
            return new CCBezierTo(this);
        }
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:12,代码来源:CCBezierTo.cs

示例15: Copy

        public override object Copy(ICCCopyable pZone)
        {
            if (pZone != null)
            {
                //in case of being called at sub class
                var pCopy = (CCEaseSineIn) (pZone);
                pCopy.InitWithAction((CCActionInterval) (m_pInner.Copy()));

                return pCopy;
            }
            return new CCEaseSineIn(this);
        }
开发者ID:Karunp,项目名称:cocos2d-xna,代码行数:12,代码来源:CCEaseSineIn.cs


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