public PlayerObject(S.ObjectPlayer info) { CharacterIndex = info.Index; ObjectID = info.ObjectID; Name = info.Name; NameColour = info.NameColour; Class = info.Class; Gender = info.Gender; Poison = info.Poison; foreach (BuffType type in info.Buffs) { VisibleBuffs.Add(type); } Title = info.GuildName; CurrentLocation = info.Location; Direction = info.Direction; HairType = info.HairType; HairColour = info.HairColour; ArmourShape = info.Armour; ArmourColour = info.ArmourColour; LibraryWeaponShape = info.Weapon; HorseShape = info.HorseShape; HelmetShape = info.Helmet; ShieldShape = info.Shield; ArmourImage = info.ArmourImage; Light = info.Light; Dead = info.Dead; Horse = info.Horse; UpdateLibraries(); SetFrame(new ObjectAction(!Dead ? MirAction.Standing : MirAction.Dead, MirDirection.Up, CurrentLocation)); GameScene.Game.MapControl.AddObject(this); }
public override Packet GetInfoPacket(PlayerObject ob) { if (Player?.Node == null) { return(null); } S.ObjectPlayer packet = (S.ObjectPlayer)Player.GetInfoPacket(null); packet.ObjectID = ObjectID; packet.Location = CurrentLocation; packet.Direction = Direction; packet.Dead = Dead; packet.Buffs.Remove(BuffType.Cloak); packet.Buffs.Remove(BuffType.Transparency); return(packet); }