Aura.Channel.Skills.Life.Campfire.Use C# (CSharp) Метод

Use() публичный Метод

Uses skill, checking if the campfire can be built at the given position.
public Use ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
Результат void
		public void Use(Creature creature, Skill skill, Packet packet)
		{
			var positionId = packet.GetLong();
			var unkInt1 = packet.GetInt();
			var unkInt2 = packet.GetInt();

			// Check location
			var validLocation = IsValidRegion(creature.Region) && IsValidPosition(creature, new Position(positionId));
			if (!validLocation)
			{
				Send.Notice(creature, Localization.Get("It's a little cramped here to make a Campfire."));

				creature.Skills.CancelActiveSkill();
				Send.SkillUseSilentCancel(creature);
				return;
			}

			Send.SkillUse(creature, skill.Info.Id, positionId, unkInt1, unkInt2);
		}