public class @GameInput : IInputActionCollection , IDisposable
{
public InputActionAsset asset { get ; }
public @GameInput ( )
{
asset = InputActionAsset . FromJson ( @ "{
public InputActionAsset asset { get ; }
public @GameInput ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" name "" : "" GameInput "" ,
"" maps "" : [
{
"" type "" : "" Value "" ,
"" id "" : "" 1 c4a88b5 - 2 4 7 4 - 4 e49 - 8f 1 0 - f987bde2dee0 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" ""
} ,
{
"" name "" : "" MouseControlCamera "" ,
"" type "" : "" Button "" ,
"" id "" : "" 3 1 7 2 ea7f - 8 4 a3 - 4 2 3 6 - b03d - 2 beae11fa2e0 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" ""
}
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" Gamepad Right Stick "" ,
"" id "" : "" e79b614b - 8 7 2 8 - 4 7 0d - 9 1 bc - 5 3 1 0 2 c8434f5 "" ,
"" path "" : "" 2D Vector ( mode = 2 ) "" ,
"" name "" : "" "" ,
"" id "" : "" 2 b832572 - 5 0 ef - 4d ba - aaeb - 9 6 4 ed1c854bb "" ,
"" path "" : "" < Gamepad > / rightStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" ScaleVector2 ( x = 2 , y = 2 ) "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
"" action "" : "" RotateCamera "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" Keyboard TFGH "" ,
"" id "" : "" 8 e17360e - f036 - 4 9 6 3 - 9 3f 6 - 0 5d 1 4 7 8 7d fb5 "" ,
"" path "" : "" 2D Vector "" ,
"" processors "" : "" "" ,
"" processors "" : "" ScaleVector2 ( x = 2 , y = 2 ) "" ,
"" groups "" : "" "" ,
"" action "" : "" RotateCamera "" ,
"" isComposite "" : true ,
"" name "" : "" up "" ,
"" id "" : "" 4 e483eb2 - 4 4 6 0 - 4d c1 - af9f - 9 bcb31ebe837 "" ,
"" path "" : "" < Gamepa d> / righ tStick / up "" ,
"" id "" : "" 9 a4ec3f5 - 7 8 bf - 4f 4 2 - b7d7 - f1edd7ce12dc "" ,
"" path "" : "" < Keyboar d> / t "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
} ,
{
"" name "" : "" down "" ,
"" id "" : "" edb40e4a - ef86 - 4 3 3 8 - 9 0 4 b - 5 2 2 5 9 0 bc3cb0 "" ,
"" path "" : "" < Gamepa d> / ri ghtStick / down "" ,
"" id "" : "" 5d 8 2 8 7 4e-55d 8 - 4d 5 4 - 8 4f 5 - c4d59dc3b39c "" ,
"" path "" : "" < Keyboar d> / g "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 3 9 8 7 1 0 b9 - e1a8 - 4 e26 - 8 6 5 1 - 8 e3ae6eb3b6e "" ,
"" path "" : "" < Gamepa d> / rightStick / le ft "" ,
"" id "" : "" 1 3 a13bd5 - f4ec - 4f 5 b - 9 a8e - ef1165cc9f5f "" ,
"" path "" : "" < Keyboar d> / f "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 5 9 7d 0 2 0 e - c169 - 4 2 3 2 - a603 - 7 e5e35ce0c55 "" ,
"" path "" : "" < Gamepa d> / rig htStick / right "" ,
"" id "" : "" 7 8 6 2 6 b57 - 1 9 6 b - 4f 2 4 - 9 a3f - af2477d3633b "" ,
"" path "" : "" < Keyboar d> / h "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
} ,
{
"" name "" : "" Keyboard TFGH "" ,
"" id "" : "" 8 e17360e - f036 - 4 9 6 3 - 9 3f 6 - 0 5d 1 4 7 8 7d fb5 "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" RotateCamera "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" id "" : "" 9 a4ec3f5 - 7 8 bf - 4f 4 2 - b7d7 - f1edd7ce12dc "" ,
"" path "" : "" < Keyboard > / t "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
"" action "" : "" RotateCamera "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 5d 8 2 8 7 4e-55d 8 - 4d 5 4 - 8 4f 5 - c4d59dc3b39c "" ,
"" path "" : "" < Keyboard > / g "" ,
"" id "" : "" 4 e483eb2 - 4 4 6 0 - 4d c1 - af9f - 9 bcb31ebe837 "" ,
"" path "" : "" < Gamepad > / rightStick / up "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" KeyboardOrGamepad "" ,
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 1 3 a13bd5 - f4ec - 4f 5 b - 9 a8e - ef1165cc9f5f "" ,
"" path "" : "" < Keyboard > / f "" ,
"" name "" : "" "" ,
"" id "" : "" 8 8 e5a69d - cf1d - 4 3 ce - b5ab - 9d b67f819255 "" ,
"" path "" : "" < Mouse > / delta "" ,
"" processors "" : "" "" ,
"" processors "" : "" ScaleVector2 "" ,
"" isPartOfComposite "" : tru e
"" isPartOfComposite "" : fals e
"" name "" : "" right "" ,
"" id "" : "" 7 8 6 2 6 b57 - 1 9 6 b - 4f 2 4 - 9 a3f - af2477d3633b "" ,
"" path "" : "" < Keyboard > / h "" ,
"" name "" : "" "" ,
"" id "" : "" 5 5 7 1 3f 1 3 - 8 4 5 2 - 4 3 9f - b87e - 7 6d 9f 2 8 3 9d 7 e "" ,
"" path "" : "" < Mouse > / rig htButton "" ,
"" action "" : "" Rotate Camera"" ,
"" action "" : "" MouseControl Camera"" ,
"" isPartOfComposite "" : tru e
"" isPartOfComposite "" : fals e
}
]
} ,
}
]
} ");
// Gameplay
m_Gameplay = asset . FindActionMap ( "Gameplay" , throwIfNotFound : true ) ;
m_Gameplay_Move = m_Gameplay . FindAction ( "Move" , throwIfNotFound : true ) ;
m_Gameplay_Jump = m_Gameplay . FindAction ( "Jump" , throwIfNotFound : true ) ;
m_Gameplay_Attack = m_Gameplay . FindAction ( "Attack" , throwIfNotFound : true ) ;
m_Gameplay_Interact = m_Gameplay . FindAction ( "Interact" , throwIfNotFound : true ) ;
m_Gameplay_Pause = m_Gameplay . FindAction ( "Pause" , throwIfNotFound : true ) ;
m_Gameplay_ExtraAction = m_Gameplay . FindAction ( "ExtraAction" , throwIfNotFound : true ) ;
m_Gameplay_RotateCamera = m_Gameplay . FindAction ( "RotateCamera" , throwIfNotFound : true ) ;
// Menus
m_Menus = asset . FindActionMap ( "Menus" , throwIfNotFound : true ) ;
}
// Gameplay
m_Gameplay = asset . FindActionMap ( "Gameplay" , throwIfNotFound : true ) ;
m_Gameplay_Move = m_Gameplay . FindAction ( "Move" , throwIfNotFound : true ) ;
m_Gameplay_Jump = m_Gameplay . FindAction ( "Jump" , throwIfNotFound : true ) ;
m_Gameplay_Attack = m_Gameplay . FindAction ( "Attack" , throwIfNotFound : true ) ;
m_Gameplay_Interact = m_Gameplay . FindAction ( "Interact" , throwIfNotFound : true ) ;
m_Gameplay_Pause = m_Gameplay . FindAction ( "Pause" , throwIfNotFound : true ) ;
m_Gameplay_ExtraAction = m_Gameplay . FindAction ( "ExtraAction" , throwIfNotFound : true ) ;
m_Gameplay_RotateCamera = m_Gameplay . FindAction ( "RotateCamera" , throwIfNotFound : true ) ;
m_Gameplay_MouseControlCamera = m_Gameplay . FindAction ( "MouseControlCamera" , throwIfNotFound : true ) ;
// Menus
m_Menus = asset . FindActionMap ( "Menus" , throwIfNotFound : true ) ;
}
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
public void Enable ( )
{
asset . Enable ( ) ;
}
public void Enable ( )
{
asset . Enable ( ) ;
}
public void Disable ( )
{
asset . Disable ( ) ;
}
public void Disable ( )
{
asset . Disable ( ) ;
}
// Gameplay
private readonly InputActionMap m_Gameplay ;
private IGameplayActions m_GameplayActionsCallbackInterface ;
private readonly InputAction m_Gameplay_Move ;
private readonly InputAction m_Gameplay_Jump ;
private readonly InputAction m_Gameplay_Attack ;
private readonly InputAction m_Gameplay_Interact ;
private readonly InputAction m_Gameplay_Pause ;
private readonly InputAction m_Gameplay_ExtraAction ;
private readonly InputAction m_Gameplay_RotateCamera ;
public struct GameplayActions
{
private @GameInput m_Wrapper ;
public GameplayActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
public InputAction @Move = > m_Wrapper . m_Gameplay_Move ;
public InputAction @Jump = > m_Wrapper . m_Gameplay_Jump ;
public InputAction @Attack = > m_Wrapper . m_Gameplay_Attack ;
public InputAction @Interact = > m_Wrapper . m_Gameplay_Interact ;
public InputAction @Pause = > m_Wrapper . m_Gameplay_Pause ;
public InputAction @ExtraAction = > m_Wrapper . m_Gameplay_ExtraAction ;
public InputAction @RotateCamera = > m_Wrapper . m_Gameplay_RotateCamera ;
public InputActionMap Get ( ) { return m_Wrapper . m_Gameplay ; }
public void Enable ( ) { Get ( ) . Enable ( ) ; }
public void Disable ( ) { Get ( ) . Disable ( ) ; }
public bool enabled = > Get ( ) . enabled ;
public static implicit operator InputActionMap ( GameplayActions set ) { return set . Get ( ) ; }
public void SetCallbacks ( IGameplayActions instance )
{
if ( m_Wrapper . m_GameplayActionsCallbackInterface ! = null )
{
@Move . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Move . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Move . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Jump . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Jump . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Jump . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Attack . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Attack . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Attack . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Interact . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Interact . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Interact . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Pause . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@Pause . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@Pause . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@ExtraAction . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@ExtraAction . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@ExtraAction . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@RotateCamera . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
@RotateCamera . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
@RotateCamera . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
}
m_Wrapper . m_GameplayActionsCallbackInterface = instance ;
if ( instance ! = null )
{
@Move . started + = instance . OnMove ;
@Move . performed + = instance . OnMove ;
@Move . canceled + = instance . OnMove ;
@Jump . started + = instance . OnJump ;
@Jump . performed + = instance . OnJump ;
@Jump . canceled + = instance . OnJump ;
@Attack . started + = instance . OnAttack ;
@Attack . performed + = instance . OnAttack ;
@Attack . canceled + = instance . OnAttack ;
@Interact . started + = instance . OnInteract ;
@Interact . performed + = instance . OnInteract ;
@Interact . canceled + = instance . OnInteract ;
@Pause . started + = instance . OnPause ;
@Pause . performed + = instance . OnPause ;
@Pause . canceled + = instance . OnPause ;
@ExtraAction . started + = instance . OnExtraAction ;
@ExtraAction . performed + = instance . OnExtraAction ;
@ExtraAction . canceled + = instance . OnExtraAction ;
@RotateCamera . started + = instance . OnRotateCamera ;
@RotateCamera . performed + = instance . OnRotateCamera ;
@RotateCamera . canceled + = instance . OnRotateCamera ;
}
}
}
public GameplayActions @Gameplay = > new GameplayActions ( this ) ;
// Gameplay
private readonly InputActionMap m_Gameplay ;
private IGameplayActions m_GameplayActionsCallbackInterface ;
private readonly InputAction m_Gameplay_Move ;
private readonly InputAction m_Gameplay_Jump ;
private readonly InputAction m_Gameplay_Attack ;
private readonly InputAction m_Gameplay_Interact ;
private readonly InputAction m_Gameplay_Pause ;
private readonly InputAction m_Gameplay_ExtraAction ;
private readonly InputAction m_Gameplay_RotateCamera ;
private readonly InputAction m_Gameplay_MouseControlCamera ;
public struct GameplayActions
{
private @GameInput m_Wrapper ;
public GameplayActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
public InputAction @Move = > m_Wrapper . m_Gameplay_Move ;
public InputAction @Jump = > m_Wrapper . m_Gameplay_Jump ;
public InputAction @Attack = > m_Wrapper . m_Gameplay_Attack ;
public InputAction @Interact = > m_Wrapper . m_Gameplay_Interact ;
public InputAction @Pause = > m_Wrapper . m_Gameplay_Pause ;
public InputAction @ExtraAction = > m_Wrapper . m_Gameplay_ExtraAction ;
public InputAction @RotateCamera = > m_Wrapper . m_Gameplay_RotateCamera ;
public InputAction @MouseControlCamera = > m_Wrapper . m_Gameplay_MouseControlCamera ;
public InputActionMap Get ( ) { return m_Wrapper . m_Gameplay ; }
public void Enable ( ) { Get ( ) . Enable ( ) ; }
public void Disable ( ) { Get ( ) . Disable ( ) ; }
public bool enabled = > Get ( ) . enabled ;
public static implicit operator InputActionMap ( GameplayActions set ) { return set . Get ( ) ; }
public void SetCallbacks ( IGameplayActions instance )
{
if ( m_Wrapper . m_GameplayActionsCallbackInterface ! = null )
{
@Move . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Move . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Move . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMove ;
@Jump . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Jump . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Jump . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnJump ;
@Attack . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Attack . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Attack . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnAttack ;
@Interact . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Interact . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Interact . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnInteract ;
@Pause . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@Pause . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@Pause . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnPause ;
@ExtraAction . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@ExtraAction . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@ExtraAction . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnExtraAction ;
@RotateCamera . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
@RotateCamera . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
@RotateCamera . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnRotateCamera ;
@MouseControlCamera . started - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMouseControlCamera ;
@MouseControlCamera . performed - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMouseControlCamera ;
@MouseControlCamera . canceled - = m_Wrapper . m_GameplayActionsCallbackInterface . OnMouseControlCamera ;
}
m_Wrapper . m_GameplayActionsCallbackInterface = instance ;
if ( instance ! = null )
{
@Move . started + = instance . OnMove ;
@Move . performed + = instance . OnMove ;
@Move . canceled + = instance . OnMove ;
@Jump . started + = instance . OnJump ;
@Jump . performed + = instance . OnJump ;
@Jump . canceled + = instance . OnJump ;
@Attack . started + = instance . OnAttack ;
@Attack . performed + = instance . OnAttack ;
@Attack . canceled + = instance . OnAttack ;
@Interact . started + = instance . OnInteract ;
@Interact . performed + = instance . OnInteract ;
@Interact . canceled + = instance . OnInteract ;
@Pause . started + = instance . OnPause ;
@Pause . performed + = instance . OnPause ;
@Pause . canceled + = instance . OnPause ;
@ExtraAction . started + = instance . OnExtraAction ;
@ExtraAction . performed + = instance . OnExtraAction ;
@ExtraAction . canceled + = instance . OnExtraAction ;
@RotateCamera . started + = instance . OnRotateCamera ;
@RotateCamera . performed + = instance . OnRotateCamera ;
@RotateCamera . canceled + = instance . OnRotateCamera ;
@MouseControlCamera . started + = instance . OnMouseControlCamera ;
@MouseControlCamera . performed + = instance . OnMouseControlCamera ;
@MouseControlCamera . canceled + = instance . OnMouseControlCamera ;
}
}
}
public GameplayActions @Gameplay = > new GameplayActions ( this ) ;
// Menus
private readonly InputActionMap m_Menus ;
private IMenusActions m_MenusActionsCallbackInterface ;
public struct MenusActions
{
private @GameInput m_Wrapper ;
public MenusActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
public InputActionMap Get ( ) { return m_Wrapper . m_Menus ; }
public void Enable ( ) { Get ( ) . Enable ( ) ; }
public void Disable ( ) { Get ( ) . Disable ( ) ; }
public bool enabled = > Get ( ) . enabled ;
public static implicit operator InputActionMap ( MenusActions set ) { return set . Get ( ) ; }
public void SetCallbacks ( IMenusActions instance )
{
if ( m_Wrapper . m_MenusActionsCallbackInterface ! = null )
{
}
m_Wrapper . m_MenusActionsCallbackInterface = instance ;
if ( instance ! = null )
{
}
}
}
public MenusActions @Menus = > new MenusActions ( this ) ;
private int m_KeyboardOrGamepadSchemeIndex = - 1 ;
public InputControlScheme KeyboardOrGamepadScheme
{
get
{
if ( m_KeyboardOrGamepadSchemeIndex = = - 1 )
m_KeyboardOrGamepadSchemeIndex = asset . FindControlSchemeIndex ( "KeyboardOrGamepad" ) ;
return asset . controlSchemes [ m_KeyboardOrGamepadSchemeIndex ] ;
}
}
public interface IGameplayActions
{
void OnMove ( InputAction . CallbackContext context ) ;
void OnJump ( InputAction . CallbackContext context ) ;
void OnAttack ( InputAction . CallbackContext context ) ;
void OnInteract ( InputAction . CallbackContext context ) ;
void OnPause ( InputAction . CallbackContext context ) ;
void OnExtraAction ( InputAction . CallbackContext context ) ;
void OnRotateCamera ( InputAction . CallbackContext context ) ;
}
public interface IMenusActions
{
}
// Menus
private readonly InputActionMap m_Menus ;
private IMenusActions m_MenusActionsCallbackInterface ;
public struct MenusActions
{
private @GameInput m_Wrapper ;
public MenusActions ( @GameInput wrapper ) { m_Wrapper = wrapper ; }
public InputActionMap Get ( ) { return m_Wrapper . m_Menus ; }
public void Enable ( ) { Get ( ) . Enable ( ) ; }
public void Disable ( ) { Get ( ) . Disable ( ) ; }
public bool enabled = > Get ( ) . enabled ;
public static implicit operator InputActionMap ( MenusActions set ) { return set . Get ( ) ; }
public void SetCallbacks ( IMenusActions instance )
{
if ( m_Wrapper . m_MenusActionsCallbackInterface ! = null )
{
}
m_Wrapper . m_MenusActionsCallbackInterface = instance ;
if ( instance ! = null )
{
}
}
}
public MenusActions @Menus = > new MenusActions ( this ) ;
private int m_KeyboardOrGamepadSchemeIndex = - 1 ;
public InputControlScheme KeyboardOrGamepadScheme
{
get
{
if ( m_KeyboardOrGamepadSchemeIndex = = - 1 ) m_KeyboardOrGamepadSchemeIndex = asset . FindControlSchemeIndex ( "KeyboardOrGamepad" ) ;
return asset . controlSchemes [ m_KeyboardOrGamepadSchemeIndex ] ;
}
}
public interface IGameplayActions
{
void OnMove ( InputAction . CallbackContext context ) ;
void OnJump ( InputAction . CallbackContext context ) ;
void OnAttack ( InputAction . CallbackContext context ) ;
void OnInteract ( InputAction . CallbackContext context ) ;
void OnPause ( InputAction . CallbackContext context ) ;
void OnExtraAction ( InputAction . CallbackContext context ) ;
void OnRotateCamera ( InputAction . CallbackContext context ) ;
void OnMouseControlCamera ( InputAction . CallbackContext context ) ;
}
public interface IMenusActions
{
}
}