wServer.realm.entities.Player.GivePet C# (CSharp) 메소드

GivePet() 공개 메소드

public GivePet ( short petId ) : void
petId short
리턴 void
        public void GivePet(short petId)
        {
            if (Pet != null)
            {
                Owner.LeaveWorld(Pet);
            }
            Pet = Entity.Resolve(petId);
            Pet.PlayerOwner = this;
            Pet.Move(X, Y);
            Pet.isPet = true;
            Owner.EnterWorld(Pet);
        }