Added Human parts
This commit is contained in:
20
Parts/Part.cs
Normal file
20
Parts/Part.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace WaifuCellar.Parts;
|
||||
|
||||
public abstract class Part {
|
||||
public abstract List<IBuff> Buffs { get; set; }
|
||||
public abstract Part? ParentPart { get; set; }
|
||||
// limbs
|
||||
public abstract List<Part> AttachedParts { get; }
|
||||
|
||||
public virtual void AddPart(Part part) {
|
||||
AttachedParts.Add(part);
|
||||
part.ParentPart = this;
|
||||
}
|
||||
|
||||
public virtual void RemovePart(Part part) {
|
||||
AttachedParts.Remove(part);
|
||||
part.ParentPart = null;
|
||||
}
|
||||
|
||||
public virtual void RemoveSelf() => ParentPart?.RemovePart(this);
|
||||
}
|
||||
Reference in New Issue
Block a user