Aura.Channel.Skills.Life.Gathering.DoComplete C# (CSharp) Метод

DoComplete() приватный Метод

Sends use motion and SkillComplete.
private DoComplete ( Creature creature, long entityId, int collectId, bool success, short failCode ) : void
creature Aura.Channel.World.Entities.Creature
entityId long
collectId int
success bool
failCode short
Результат void
		private void DoComplete(Creature creature, long entityId, int collectId, bool success, short failCode)
		{
			Send.UseMotion(creature, 14, success ? 2 : 3);

			if (success)
				Send.SkillComplete(creature, SkillId.Gathering, entityId, collectId);
			else
				Send.SkillCompleteUnk(creature, SkillId.Gathering, entityId, collectId, failCode);

			ChannelServer.Instance.Events.OnCreatureFinishedProductionOrCollection(creature, success);
		}