示例#1
0
 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);
 }
示例#2
0
 public static BodyPart GetBodyPart(EBodyType bodyType, string name) => GetBodyPart(BodyTypes.BodyType2String(bodyType), name);
示例#3
0
 public static Body GetBody(EBodyType bodyType) => GetBody(BodyTypes.BodyType2String(bodyType));