public override BaseEvent Clone() { CallMonsterTick tick = ClassObjPool <CallMonsterTick> .Get(); tick.CopyData(this); return(tick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); CallMonsterTick tick = src as CallMonsterTick; this.TargetId = tick.TargetId; this.WayPointId = tick.WayPointId; this.ConfigID = tick.ConfigID; this.LifeTime = tick.LifeTime; this.CampType = tick.CampType; this.Invincible = tick.Invincible; this.Moveable = tick.Moveable; this.bCopyedHeroInfo = tick.bCopyedHeroInfo; }
protected override void CopyData(BaseEvent src) { base.CopyData(src); CallMonsterTick callMonsterTick = src as CallMonsterTick; this.TargetId = callMonsterTick.TargetId; this.WayPointId = callMonsterTick.WayPointId; this.ConfigID = callMonsterTick.ConfigID; this.LifeTime = callMonsterTick.LifeTime; this.CampType = callMonsterTick.CampType; this.Invincible = callMonsterTick.Invincible; this.Moveable = callMonsterTick.Moveable; this.bCopyedHeroInfo = callMonsterTick.bCopyedHeroInfo; this.bSuicideWhenHostDead = callMonsterTick.bSuicideWhenHostDead; this.bDrageToHostWhenTooFarAway = callMonsterTick.bDrageToHostWhenTooFarAway; this.bUseHostValueProperty = callMonsterTick.bUseHostValueProperty; this.bInitialVisibility = callMonsterTick.bInitialVisibility; }