public HurtBoxRootNode(HurtBoxRootNode copy) { HurtBoxData = copy.HurtBoxData; foreach (SimpleRectNode node in copy.Children) { Children.Add(node); } }
private void RefreshHurtboxRootData() { DisableHurtboxRootEvents(); HurtBoxData data = renderPreview.GetHurtboxRootData(); chkProjectileImmune.Checked = data.ProjectileImmunity; chkLowImmune.Checked = data.LowImmunity; EnableHurtboxRootEvents(); }
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; }
private HurtBoxData CollectHurtBoxData() { HurtBoxData data = new HurtBoxData(chkProjectileImmune.Checked, chkLowImmune.Checked); return(data); }
public void ReInitHurtBoxRoot(HurtBoxData newData) { collisionFrameData.HurtBoxKeyFrameData[selectedKeyFrame][selectedRootIndex].HurtBoxData = newData; }