internal void method_7(GClass215 gclass215_0) { bool isInitialized = this.Hero.IsInitialized; this.Hero.Hp = 0; this.Hero.Clear(); this.Hero.IsInitialized = false; this.LastDied = DateTimeOffset.Now; this.IsLoggedOut = true; GameManager.GClass77.GDelegate2 heroDied = this.HeroDied; if (heroDied == null) { return; } heroDied(this, this.Hero, gclass215_0, isInitialized); }
public virtual void OnDeath(GClass215 gclass215_0) { int deaths = this.Deaths; this.Deaths = deaths + 1; MapProfile mapProfile = this.Context.MapProfile; int num = (mapProfile != null) ? mapProfile.MaxDeaths : 0; MapProfile mapProfile2 = this.Context.MapProfile; int num2 = (mapProfile2 != null) ? mapProfile2.MapCooldown : 1; if (num > 0 && this.Deaths >= num) { TimeSpan timeSpan_ = TimeSpan.FromMinutes((double)num2); this.SetCooldown(timeSpan_, true); } }
public void method_7(GClass215 gclass215_0) { this.Group.method_8(gclass215_0); }
public void Run(GClass215 e) { ConnectionManager.Instance.Value.Game.method_7(e); }
public void method_8(GClass215 gclass215_0) { this.OwnerId = gclass215_0.int_0; }