public HurtBoxRootNode(HurtBoxRootNode copy)
        {
            HurtBoxData = copy.HurtBoxData;

            foreach (SimpleRectNode node in copy.Children)
            {
                Children.Add(node);
            }
        }
Пример #2
0
        private void RefreshHurtboxRootData()
        {
            DisableHurtboxRootEvents();
            HurtBoxData data = renderPreview.GetHurtboxRootData();

            chkProjectileImmune.Checked = data.ProjectileImmunity;
            chkLowImmune.Checked        = data.LowImmunity;
            EnableHurtboxRootEvents();
        }
Пример #3
0
 public int AddRootHurtBox(int keyFrame, HurtBoxData data)
 {
     if (collisionFrameData.HurtBoxKeyFrameData.ContainsKey(keyFrame))
     {
         collisionFrameData.HurtBoxKeyFrameData[keyFrame].Add(new HurtBoxRootNode(data));
         return(collisionFrameData.HurtBoxKeyFrameData[keyFrame].Count - 1);
     }
     else
     {
         collisionFrameData.HurtBoxKeyFrameData.Add(keyFrame, new List <HurtBoxRootNode> {
             new HurtBoxRootNode(data)
         });
         return(collisionFrameData.HurtBoxKeyFrameData[keyFrame].Count - 1);
     }
 }
 public HurtBoxRootNode(HurtBoxData hurtBoxData)
 {
     HurtBoxData = hurtBoxData;
 }
Пример #5
0
        private HurtBoxData CollectHurtBoxData()
        {
            HurtBoxData data = new HurtBoxData(chkProjectileImmune.Checked, chkLowImmune.Checked);

            return(data);
        }
Пример #6
0
 public void ReInitHurtBoxRoot(HurtBoxData newData)
 {
     collisionFrameData.HurtBoxKeyFrameData[selectedKeyFrame][selectedRootIndex].HurtBoxData = newData;
 }