private void itmCopiarItem_Click(object sender, EventArgs e)
 {
     copiedEvent = CurrentMap.MapEvents.Find(ev => ev.Position == SelectedTile);
 }
        private void SelectEvent(Event ev)
        {
            if (ev.Action == EventAction.TeleportCharacter)
            {

            }
        }
        private void SetTeleportDestination()
        {
            lblEditorStatus.Text = string.Empty;

            var teleport = new Event(EventAction.TeleportCharacter, CurrentMap.Id, MouseTile, false)
            {
                Position = SelectedTile,
                TriggerType = TriggerType.Touch,
                Animation = new SpriteAnimation(GameGraphics.GlowingFloor, 100, 4)
            };

            var mapIndex = Project.Maps.FindIndex(delegate(Map m) { return m.Id == TeleportStartupMap; });

            Project.Maps[mapIndex].MapEvents.Add(teleport);
            SetCurrentCommand(EditorCommand.Select);
        }
 private void ProcessMapEvent(Event e)
 {
     if (e.Action == EventAction.TeleportCharacter)
     {
         TeleportPlayer(e.DestinationMapId, e.Destination);
     }
     else if (e.Action == EventAction.StartQuest)
     {
         Game.PlayerQuests.Add(e.Quest);
     }
 }