Aura.Channel.World.Dungeons.Dungeon.OnPlayerEntersLobby C# (CSharp) Метод

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

Called when a creature enters the lobby region.
public OnPlayerEntersLobby ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Результат void
		public void OnPlayerEntersLobby(Creature creature)
		{
			var actualCreature = creature.GetActualCreature();
			var isCreator = this.Creators.Contains(actualCreature.EntityId);

			// Save location
			// This happens whenever you enter the lobby.
			creature.DungeonSaveLocation = creature.GetLocation();
			Send.Notice(creature, Localization.Get("You have memorized this location."));

			// Notify player if dungeon was created by another party.
			if (!isCreator)
				Send.MsgBox(creature, Localization.Get("This dungeon has been created by another player."));

			// Scroll message
			var msg = "";
			if (isCreator)
				msg = Localization.Get("This dungeon has been created by you or your party.\t");
			else
				msg = Localization.Get("This dungeon has been created by another player.");

			Send.Notice(creature, NoticeType.Top, ScrollMessageDuration, msg + this.GetPlayerListScrollMessage());

			// Enter events
			this.Script.OnPlayerEntered(this, creature);
			lock (_partyEnterSyncLock)
			{
				if (!_partyEnterEventFired && this.CountPlayers() == this.Creators.Count)
				{
					_partyEnterEventFired = true;
					this.Script.OnPartyEntered(this, creature);
				}
			}
		}