Exemplo n.º 1
0
 public ScriptWeapon(IRefObject Ref)
 {
     this.Ref = (ServerWeapon)Ref;
 }
Exemplo n.º 2
0
 public ScriptWeapon(CSocket socket, IRefObject Ref)
     : base(socket)
 {
     this.Ref = (ServerWeapon)Ref;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Function -> Add Weapon to Player (by object)
        /// </summary>
        /// <param name="Weapon"></param>
        public void AddWeapon(ServerWeapon Weapon)
        {
            if (Weapon == null)
                return;

            this.Server.SendPacket(new CString() + (byte)103 + (byte)10 + (short)Id + Weapon.Name);
            _weaponList.Add(Weapon);
        }