public object Clone()
        {
            var clone = new GameAgentMultipliers();

            GoldScoreMultiplier.CopyTo(clone.GoldScoreMultiplier, 0);
            MonsterWhenPossessingWeaponScoreMultiplier.CopyTo(clone.MonsterWhenPossessingWeaponScoreMultiplier, 0);
            MonsterWhenNotPossessingWeaponScoreMultiplier.CopyTo(clone.MonsterWhenNotPossessingWeaponScoreMultiplier, 0);
            WeaponWhenPossessingWeaponScoreMultiplier.CopyTo(clone.WeaponWhenPossessingWeaponScoreMultiplier, 0);
            WeaponWhenPossessingNotWeaponScoreMultiplier.CopyTo(clone.WeaponWhenPossessingNotWeaponScoreMultiplier, 0);

            return(clone);
        }
Beispiel #2
0
        public object Clone()
        {
            var clone = new GameAgentLogicGenome();

            GoldScoreMultiplier.CopyTo(clone.GoldScoreMultiplier, 0);
            MonsterWhenPossessingWeaponScoreMultiplier.CopyTo(clone.MonsterWhenPossessingWeaponScoreMultiplier, 0);
            MonsterWhenNotPossessingWeaponScoreMultiplier.CopyTo(clone.MonsterWhenNotPossessingWeaponScoreMultiplier, 0);
            WeaponWhenPossessingWeaponScoreMultiplier.CopyTo(clone.WeaponWhenPossessingWeaponScoreMultiplier, 0);
            WeaponWhenNotPossessingWeaponScoreMultiplier.CopyTo(clone.WeaponWhenNotPossessingWeaponScoreMultiplier, 0);
            clone.MonsterWhenPossessingWeaponScoreFunc    = (IExpression <GameState>)MonsterWhenPossessingWeaponScoreFunc.Clone();
            clone.MonsterWhenNotPossessingWeaponScoreFunc = (IExpression <GameState>)MonsterWhenNotPossessingWeaponScoreFunc.Clone();
            clone.WeaponWhenPossessingWeaponScoreFunc     = (IExpression <GameState>)WeaponWhenPossessingWeaponScoreFunc.Clone();
            clone.WeaponWhenNotPossessingWeaponScoreFunc  = (IExpression <GameState>)WeaponWhenNotPossessingWeaponScoreFunc.Clone();

            return(clone);
        }