Interface IInputConflictScope
Answers whether two parts of a game can be live at the same time.
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public interface IInputConflictScope
Remarks
This is the one piece of conflict detection that is policy rather than fact. Whether two controls are the same physical input is determined by the paths; whether two actions can both hear it is determined by how the game is put together, and only the game can say.
Two strings in, one bool out, with no dependency on the record type. That is what lets the engine memoize verdicts across a query and keeps each implementation to a single expression.
Methods
CanScopesCollide(string, string)
Reports whether two scope keys name states that can be live simultaneously.
Declaration
bool CanScopesCollide(string scopeA, string scopeB)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scopeA | First scope key. |
| string | scopeB | Second scope key. |
Returns
| Type | Description |
|---|---|
| bool |
|
Remarks
Returning true is the conservative answer: it reports the overlap and lets
a human decide. An implementation that cannot tell should say true.