本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例6: Copy
public override object Copy(ICCCopyable zone)
{
if (zone != null)
{
var ret = (CCToggleVisibility) zone;
base.Copy(zone);
return ret;
}
return new CCToggleVisibility(this);
}
示例7: Copy
public override object Copy(ICCCopyable zone)
{
if (zone != null)
{
var ret = (CCActionInstant) zone;
base.Copy(zone);
return ret;
}
return new CCActionInstant(this);
}
示例8: Copy
public override object Copy(ICCCopyable pZone)
{
if (pZone != null)
{
var pRet = (CCHide) (pZone);
base.Copy(pZone);
return pRet;
}
return new CCHide(this);
}
示例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);
}
示例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);
}
示例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);
}
示例12: Copy
public virtual object Copy(ICCCopyable zone)
{
if (zone != null)
{
((CCAction) zone).m_nTag = m_nTag;
return zone;
}
else
{
return new CCAction(this);
}
}
示例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);
}
示例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);
}
示例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);
}