Example #1
0
 public void method_0(GClass220 gclass220_0)
 {
     HeroPet.CooldownType int_ = (HeroPet.CooldownType)gclass220_0.int_0;
     if (gclass220_0.State == 0)
     {
         this.Pet.Cooldowns.method_1(int_, (double)(gclass220_0.vector_0.FirstOrDefault <int>() * 1000));
         return;
     }
     this.Pet.Cooldowns.Clear(int_);
 }
Example #2
0
 internal void method_6(GClass220 gclass220_0)
 {
     this.Hero.Init(gclass220_0);
     GameManager.GClass77.GDelegate1 heroInit = this.HeroInit;
     if (heroInit == null)
     {
         return;
     }
     heroInit(this, this.Hero);
 }
Example #3
0
 public override void Init(GClass220 gclass220_0)
 {
     this.Clear();
     this.Equipment.Clear();
     base.Init(gclass220_0);
     this.Speed          = gclass220_0.int_9;
     this.Premium        = gclass220_0.bool_2;
     this.Jackpot        = gclass220_0.double_0;
     this.Credits        = gclass220_0.Credits;
     this.Uridium        = gclass220_0.Uridium;
     this.Experience     = gclass220_0.Experience;
     this.Honor          = gclass220_0.Honor;
     this.Game.Map.MapId = gclass220_0.MapId;
     this.Game.NextMapId = 0;
     this.Level          = gclass220_0.int_4;
     this.CargoCapacity  = gclass220_0.int_15;
     this.IsInitialized  = true;
 }
Example #4
0
    public void Run(GClass220 cmd)
    {
        ConnectionManager value = ConnectionManager.Instance.Value;

        if (!value.method_18())
        {
            return;
        }
        if (cmd.Reset)
        {
            value.Game.Hero.Clear();
            value.Game.Map.Clear();
        }
        value.Game.method_6(cmd);
        value.SendMessage(new GClass158());
        if (cmd.Reset)
        {
            value.SendMessage(new GClass172(value.Game.Security.method_1(), value.Game.Settings.Use3D ? 1U : 0U));
            value.SendMessage(new GClass172(value.Game.Security.method_1(), 2U));
        }
    }
Example #5
0
 public virtual void Init(GClass220 gclass220_0)
 {
     this.PosX      = gclass220_0.int_13;
     this.PosY      = gclass220_0.int_17;
     this.IsNpc     = false;
     this.FactionId = gclass220_0.int_0;
     this.Id        = gclass220_0.int_7;
     this.TypeId    = gclass220_0.string_0;
     this.ClanTag   = gclass220_0.PqfpYrsegr;
     this.Cloaked   = gclass220_0.bool_1;
     this.Hp        = gclass220_0.int_2;
     this.HpMax     = gclass220_0.int_14;
     this.Shield    = gclass220_0.int_12;
     this.ShieldMax = gclass220_0.int_1;
     this.Name      = gclass220_0.string_1;
     this.Modifiers.Clear();
     this.Effects.Clear();
     foreach (GClass187 gclass187_ in gclass220_0.vector_0)
     {
         this.ApplyModifier(gclass187_);
     }
     this.LastStatUpdate = DateTimeOffset.Now;
 }