Namespace: DeltaEngine.Commands
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Commands.CommandTests
1 unit tests call DeltaEngine.Commands.Command.Add(DeltaEngine.Commands.Trigger)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- trigger
- Type: DeltaEngine.Commands Trigger
Return Value
Type: CommandRemarks
Examples
[Test] public void CreateCommandWithManualTrigger() { customTrigger = new MockTrigger(); new Command(() => pos += Time.Delta).Add(customTrigger); InvokingTriggerWithoutRunningEntitiesDoesNotCauseAction(); InvokingTriggerOnceWithMultipleRunsOnlyCausesOneAction(); }
See Also