Exemple #1
0
        public bool DeleteSelection(CreatureBuilder builder)
        {
            bool creatureChanged = this.selection.Count > 0;

            builder.Delete(this.selection);
            BodyComponent.RemoveDeletedObjects(this.selection);
            return(creatureChanged);
        }
Exemple #2
0
 /// <summary>
 /// Removes the already destroyed object that are still left in the lists.
 /// </summary>
 private void RemoveDeletedObjects()
 {
     bones   = BodyComponent.RemoveDeletedObjects <Bone>(bones);
     joints  = BodyComponent.RemoveDeletedObjects <Joint>(joints);
     muscles = BodyComponent.RemoveDeletedObjects <Muscle>(muscles);
 }