// Token: 0x06002D58 RID: 11608 RVA: 0x000AB200 File Offset: 0x000A9400 public void LoadVitals(RustProto.Vitals vitals) { this.caloricLevel = vitals.Calories; this.waterLevelLitre = vitals.Hydration; this.radiationLevel = vitals.Radiation; this.antiRads = vitals.RadiationAnti; this.coreTemperature = vitals.Temperature; }
// Token: 0x06000B93 RID: 2963 RVA: 0x0002D7BC File Offset: 0x0002B9BC public virtual void LoadVitals(RustProto.Vitals vitals) { this.health = vitals.Health; if (this.health <= 0f) { Debug.Log("LOAD VITALS - HEALTH WAS " + this.health); this.health = 1f; } }
// Token: 0x0600130B RID: 4875 RVA: 0x00043A30 File Offset: 0x00041C30 public objectSleepingAvatar.Builder MergeVitals(Vitals value) { ThrowHelper.ThrowIfNull(value, "value"); this.PrepareBuilder(); if (this.result.hasVitals && this.result.vitals_ != Vitals.DefaultInstance) { this.result.vitals_ = Vitals.CreateBuilder(this.result.vitals_).MergeFrom(value).BuildPartial(); } else { this.result.vitals_ = value; } this.result.hasVitals = true; return(this); }
// Token: 0x060012EC RID: 4844 RVA: 0x000434D4 File Offset: 0x000416D4 public override objectSleepingAvatar.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; uint num; string text; while (input.ReadTag(ref num, ref text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(objectSleepingAvatar._objectSleepingAvatarFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = objectSleepingAvatar._objectSleepingAvatarFieldTags[num2]; } uint num3 = num; if (num3 == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num3 != 8u) { if (num3 != 16u) { if (num3 != 24u) { if (num3 != 32u) { if (num3 != 40u) { if (num3 != 50u) { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.UnknownFields = builder.Build(); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); } else { Vitals.Builder builder2 = Vitals.CreateBuilder(); if (this.result.hasVitals) { builder2.MergeFrom(this.Vitals); } input.ReadMessage(builder2, extensionRegistry); this.Vitals = builder2.BuildPartial(); } } else { this.result.hasTimestamp = input.ReadInt32(ref this.result.timestamp_); } } else { this.result.hasHeadArmor = input.ReadInt32(ref this.result.headArmor_); } } else { this.result.hasTorsoArmor = input.ReadInt32(ref this.result.torsoArmor_); } } else { this.result.hasLegArmor = input.ReadInt32(ref this.result.legArmor_); } } else { this.result.hasFootArmor = input.ReadInt32(ref this.result.footArmor_); } } if (builder != null) { this.UnknownFields = builder.Build(); } return(this); }
// Token: 0x06002D29 RID: 11561 RVA: 0x000A8DF0 File Offset: 0x000A6FF0 public override void LoadVitals(RustProto.Vitals vitals) { base.LoadVitals(vitals); this._bleedingLevel = vitals.BleedSpeed; this._healOverTime = vitals.HealSpeed; }