public Body(EBodyType bodyType) { this.BodyPartCount = 0; this.BodyType = bodyType; this.Name = BodyTypes.BodyType2String(BodyType); this._bodyParts = new BodyPart[MaxBodyPartCount]; this._bodyNodes = new BodyNode[MaxBodyPartCount]; this._rootNode = new BodyNode(-1); this.HealingAmount = 0; this.HealingAmountMultiplier = 1f; this.HealingPeriod = 0; this.TimeSinceHeal = float.MaxValue; this._eventSystem = new BodyEventSystem(this); }
public static BodyPart GetBodyPart(EBodyType bodyType, string name) => GetBodyPart(BodyTypes.BodyType2String(bodyType), name);
public static Body GetBody(EBodyType bodyType) => GetBody(BodyTypes.BodyType2String(bodyType));