public DetailInteractionEventArgs(DetailObject detail, Interaction interaction, IActor actor)
     : base(actor)
 {
     this.Detail = detail;
     this.Interaction = interaction;
 }
 private void ButtonBehaviour_Enabled(object sender, EventArgs e)
 {
     this.interaction = new Interaction("Push Button", Button_Triggered);
     this.Detail.Interactions.Add(this.interaction);
 }
		private void FlipOverBehaviour_Enabled(object sender, EventArgs e)
		{
			this.interaction = new Interaction("Flip Over", (s, _) => this.FlipTable());
			this.Detail.Interactions.Add(this.interaction);
		}
 public void TriggerInteraction(DetailObject detail, Interaction interaction)
 {
     this.sender.Send(NetworkPhrase.TriggerInteraction, (s) =>
     {
         s.Write(detail.ID);
         s.Write(interaction.ID);
     });
 }
Beispiel #5
0
 private void DoorBehaviour_Enabled(object sender, EventArgs e)
 {
     this.interaction = new Interaction("Open/Close", Door_OpenClose);
     this.Detail.Interactions.Add(this.interaction);
 }