Exemplo n.º 1
0
        public GDEEnemyData ShallowClone()
        {
            string       newKey   = Guid.NewGuid().ToString();
            GDEEnemyData newClone = new GDEEnemyData(newKey);

            newClone.ID          = ID;
            newClone.MaxHP       = MaxHP;
            newClone.MoveVec     = MoveVec;
            newClone.AlertRange  = AlertRange;
            newClone.AtkRange    = AtkRange;
            newClone.AtkInterval = AtkInterval;
            newClone.HurtProtect = HurtProtect;
            newClone.Mass        = Mass;
            newClone.PrefabPath  = PrefabPath;

            return(newClone);
        }
Exemplo n.º 2
0
        public GDEEnemyData DeepClone()
        {
            GDEEnemyData newClone = ShallowClone();

            return(newClone);
        }