コード例 #1
0
 public void OnDoorOpened()
 {
     UnlockDoor();
     DoorOpenEvent?.Invoke(this, new DoorEventArgs()
     {
         DoorOpen = DoorOpen, DoorClosed = DoorClosed
     });
 }
コード例 #2
0
 //Notify
 public void OnDoorOpen(bool doorOpen)
 {
     DoorOpenedValue = doorOpen;
     DoorOpenEvent?.Invoke(this, new DoorOpenEventArgs()
     {
         DoorOpened = DoorOpenedValue
     });
 }
コード例 #3
0
        private void OnDoorOpens(IEventData eventData)
        {
            DoorOpenEvent doorEvent = eventData as DoorOpenEvent;
            Entity        door      = doorEvent.Door;
            Cell          cell      = mapManager.Map[door.CellTransform.Position];

            if (cell != null && cell.Visibility == VisibilityType.Visible)
            {
                Refresh();
                gameManager.Renderer.RefreshVisibility();                 // TODO: switch this to a reactive system using VisibilityRefreshedEvent
            }
        }
コード例 #4
0
 public void OnUserOpensDoor()
 {
     Console.WriteLine("[Door opens]");
     DoorOpenEvent?.Invoke(this, new DoorOpenEventArgs());
 }
コード例 #5
0
ファイル: Door.cs プロジェクト: ellenhuld/Ladeskab
 protected virtual void DoorOpenChanged(DoorOpenChangedEventArgs e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }
コード例 #6
0
ファイル: Door.cs プロジェクト: SWTGr16/SWTGr16Handin2
 protected virtual void OnDoorClosed(EventArgDoorOpen e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }
コード例 #7
0
 public virtual void OnDoorOpened()
 {
     DoorOpenEvent?.Invoke(this, EventArgs.Empty);
 }
コード例 #8
0
 protected virtual void WhenDoorOpen(DoorEventArgs e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }
コード例 #9
0
ファイル: DoorSimulator.cs プロジェクト: victorduun/E6SWT
 protected virtual void RaiseDoorOpenEvent()
 {
     DoorOpenEvent?.Invoke(this, EventArgs.Empty);
 }
コード例 #10
0
ファイル: DoorSimulator.cs プロジェクト: Shynthavi/Ladeskab
 private void OnNewOpenDoorStatus(DoorStatusEventArgs e)
 {
     DoorOpenEvent?.Invoke(this, e);
 }