Module technology.sola.engine
Record Class ControlsConfig
java.lang.Object
java.lang.Record
technology.sola.engine.assets.input.ControlsConfig
- Record Components:
controls
- the Map of control ids to controls
- All Implemented Interfaces:
Asset
@NullMarked
public record ControlsConfig(Map<String,List<ControlInput>> controls)
extends Record
implements Asset
ControlsConfig is an
Asset
for control configurations. Each control can have multiple
ControlInput
s. If any ControlInput
is in an active state then the control will be considered active.-
Constructor Summary
ConstructorsConstructorDescriptionControlsConfig
(Map<String, List<ControlInput>> controls) Creates an instance of aControlsConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontrols()
Returns the value of thecontrols
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ControlsConfig
Creates an instance of aControlsConfig
record class.- Parameters:
controls
- the value for thecontrols
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
controls
Returns the value of thecontrols
record component.- Returns:
- the value of the
controls
record component
-