A game about forced loneliness, made by TACStudios
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
4// version 1.11.2
5// from Assets/Samples/InGameHints/InGameHintsActions.inputactions
6//
7// Changes to this file may cause incorrect behavior and will be lost if
8// the code is regenerated.
9// </auto-generated>
10//------------------------------------------------------------------------------
11
12using System;
13using System.Collections;
14using System.Collections.Generic;
15using UnityEngine.InputSystem;
16using UnityEngine.InputSystem.Utilities;
17
18namespace UnityEngine.InputSystem.Samples.InGameHints
19{
20 public partial class @InGameHintsActions: IInputActionCollection2, IDisposable
21 {
22 public InputActionAsset asset { get; }
23 public @InGameHintsActions()
24 {
25 asset = InputActionAsset.FromJson(@"{
26 ""name"": ""InGameHintsActions"",
27 ""maps"": [
28 {
29 ""name"": ""Gameplay"",
30 ""id"": ""9af2d1b0-cc47-4300-854c-838acb4b168b"",
31 ""actions"": [
32 {
33 ""name"": ""Move"",
34 ""type"": ""Value"",
35 ""id"": ""7e7492e7-1329-48bb-9fdc-279fd15473b4"",
36 ""expectedControlType"": ""Vector2"",
37 ""processors"": """",
38 ""interactions"": """",
39 ""initialStateCheck"": true
40 },
41 {
42 ""name"": ""Look"",
43 ""type"": ""Value"",
44 ""id"": ""981fecc2-2e7a-4d6a-b041-00b47626e0a1"",
45 ""expectedControlType"": ""Vector2"",
46 ""processors"": """",
47 ""interactions"": """",
48 ""initialStateCheck"": true
49 },
50 {
51 ""name"": ""PickUp"",
52 ""type"": ""Button"",
53 ""id"": ""5a59bbc2-a3d4-4cbd-88bb-01120d97dc69"",
54 ""expectedControlType"": """",
55 ""processors"": """",
56 ""interactions"": """",
57 ""initialStateCheck"": false
58 },
59 {
60 ""name"": ""Drop"",
61 ""type"": ""Button"",
62 ""id"": ""f37bbe7e-e241-443f-b868-c784e1219f25"",
63 ""expectedControlType"": """",
64 ""processors"": """",
65 ""interactions"": """",
66 ""initialStateCheck"": false
67 },
68 {
69 ""name"": ""Throw"",
70 ""type"": ""Button"",
71 ""id"": ""e450d71c-7cc5-4879-afb5-f3ed682d9824"",
72 ""expectedControlType"": """",
73 ""processors"": """",
74 ""interactions"": """",
75 ""initialStateCheck"": false
76 }
77 ],
78 ""bindings"": [
79 {
80 ""name"": """",
81 ""id"": ""5abc4d20-74bd-4f14-902f-2bd2cf59cc28"",
82 ""path"": ""<Gamepad>/leftStick"",
83 ""interactions"": """",
84 ""processors"": """",
85 ""groups"": ""Gamepad"",
86 ""action"": ""Move"",
87 ""isComposite"": false,
88 ""isPartOfComposite"": false
89 },
90 {
91 ""name"": ""WASD"",
92 ""id"": ""b16141b1-1611-44db-9576-5a004eb451f2"",
93 ""path"": ""2DVector"",
94 ""interactions"": """",
95 ""processors"": """",
96 ""groups"": ""Keyboard&Mouse"",
97 ""action"": ""Move"",
98 ""isComposite"": true,
99 ""isPartOfComposite"": false
100 },
101 {
102 ""name"": ""up"",
103 ""id"": ""2b20de3f-1ad8-4b42-b591-595edf60dced"",
104 ""path"": ""<Keyboard>/w"",
105 ""interactions"": """",
106 ""processors"": """",
107 ""groups"": ""Keyboard&Mouse"",
108 ""action"": ""Move"",
109 ""isComposite"": false,
110 ""isPartOfComposite"": true
111 },
112 {
113 ""name"": ""down"",
114 ""id"": ""2f92eaa9-7f1f-4f42-9682-d105f7c2fc22"",
115 ""path"": ""<Keyboard>/s"",
116 ""interactions"": """",
117 ""processors"": """",
118 ""groups"": ""Keyboard&Mouse"",
119 ""action"": ""Move"",
120 ""isComposite"": false,
121 ""isPartOfComposite"": true
122 },
123 {
124 ""name"": ""left"",
125 ""id"": ""3ba79a56-c5f8-4999-8203-bef8471f4bd8"",
126 ""path"": ""<Keyboard>/a"",
127 ""interactions"": """",
128 ""processors"": """",
129 ""groups"": ""Keyboard&Mouse"",
130 ""action"": ""Move"",
131 ""isComposite"": false,
132 ""isPartOfComposite"": true
133 },
134 {
135 ""name"": ""right"",
136 ""id"": ""8d9acfe6-d844-4860-a151-01d6eb0dfb48"",
137 ""path"": ""<Keyboard>/d"",
138 ""interactions"": """",
139 ""processors"": """",
140 ""groups"": ""Keyboard&Mouse"",
141 ""action"": ""Move"",
142 ""isComposite"": false,
143 ""isPartOfComposite"": true
144 },
145 {
146 ""name"": """",
147 ""id"": ""b69cbeb7-a5bf-4df1-8965-17d944634cef"",
148 ""path"": ""<Gamepad>/rightStick"",
149 ""interactions"": """",
150 ""processors"": """",
151 ""groups"": ""Gamepad"",
152 ""action"": ""Look"",
153 ""isComposite"": false,
154 ""isPartOfComposite"": false
155 },
156 {
157 ""name"": """",
158 ""id"": ""b2ddefc9-49da-485d-be28-58e3ec3f8080"",
159 ""path"": ""<Mouse>/delta"",
160 ""interactions"": """",
161 ""processors"": """",
162 ""groups"": ""Keyboard&Mouse"",
163 ""action"": ""Look"",
164 ""isComposite"": false,
165 ""isPartOfComposite"": false
166 },
167 {
168 ""name"": """",
169 ""id"": ""92182492-7b62-47e0-94ad-53d9937d9905"",
170 ""path"": ""<Gamepad>/buttonSouth"",
171 ""interactions"": """",
172 ""processors"": """",
173 ""groups"": ""Gamepad"",
174 ""action"": ""PickUp"",
175 ""isComposite"": false,
176 ""isPartOfComposite"": false
177 },
178 {
179 ""name"": """",
180 ""id"": ""e20635aa-ffe7-4ed9-8802-96c039d26a8f"",
181 ""path"": ""<Keyboard>/q"",
182 ""interactions"": """",
183 ""processors"": """",
184 ""groups"": ""Keyboard&Mouse"",
185 ""action"": ""PickUp"",
186 ""isComposite"": false,
187 ""isPartOfComposite"": false
188 },
189 {
190 ""name"": """",
191 ""id"": ""f5571cd9-1166-4ddc-9071-37dc597b1d4e"",
192 ""path"": ""<Gamepad>/buttonEast"",
193 ""interactions"": """",
194 ""processors"": """",
195 ""groups"": ""Gamepad"",
196 ""action"": ""Drop"",
197 ""isComposite"": false,
198 ""isPartOfComposite"": false
199 },
200 {
201 ""name"": """",
202 ""id"": ""950f549e-ec9c-4d03-aeff-f09ec4031d01"",
203 ""path"": ""<Keyboard>/e"",
204 ""interactions"": """",
205 ""processors"": """",
206 ""groups"": ""Keyboard&Mouse"",
207 ""action"": ""Drop"",
208 ""isComposite"": false,
209 ""isPartOfComposite"": false
210 },
211 {
212 ""name"": """",
213 ""id"": ""47d1952d-797b-4f5b-986c-654b8e479deb"",
214 ""path"": ""<Gamepad>/buttonSouth"",
215 ""interactions"": """",
216 ""processors"": """",
217 ""groups"": ""Gamepad"",
218 ""action"": ""Throw"",
219 ""isComposite"": false,
220 ""isPartOfComposite"": false
221 },
222 {
223 ""name"": """",
224 ""id"": ""02e2493d-1eb3-4334-9d25-92f2b5e21399"",
225 ""path"": ""<Keyboard>/space"",
226 ""interactions"": """",
227 ""processors"": """",
228 ""groups"": ""Keyboard&Mouse"",
229 ""action"": ""Throw"",
230 ""isComposite"": false,
231 ""isPartOfComposite"": false
232 }
233 ]
234 }
235 ],
236 ""controlSchemes"": [
237 {
238 ""name"": ""Gamepad"",
239 ""bindingGroup"": ""Gamepad"",
240 ""devices"": [
241 {
242 ""devicePath"": ""<Gamepad>"",
243 ""isOptional"": false,
244 ""isOR"": false
245 }
246 ]
247 },
248 {
249 ""name"": ""Keyboard&Mouse"",
250 ""bindingGroup"": ""Keyboard&Mouse"",
251 ""devices"": [
252 {
253 ""devicePath"": ""<Keyboard>"",
254 ""isOptional"": false,
255 ""isOR"": false
256 },
257 {
258 ""devicePath"": ""<Mouse>"",
259 ""isOptional"": false,
260 ""isOR"": false
261 }
262 ]
263 }
264 ]
265}");
266 // Gameplay
267 m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true);
268 m_Gameplay_Move = m_Gameplay.FindAction("Move", throwIfNotFound: true);
269 m_Gameplay_Look = m_Gameplay.FindAction("Look", throwIfNotFound: true);
270 m_Gameplay_PickUp = m_Gameplay.FindAction("PickUp", throwIfNotFound: true);
271 m_Gameplay_Drop = m_Gameplay.FindAction("Drop", throwIfNotFound: true);
272 m_Gameplay_Throw = m_Gameplay.FindAction("Throw", throwIfNotFound: true);
273 }
274
275 ~@InGameHintsActions()
276 {
277 UnityEngine.Debug.Assert(!m_Gameplay.enabled, "This will cause a leak and performance issues, InGameHintsActions.Gameplay.Disable() has not been called.");
278 }
279
280 public void Dispose()
281 {
282 UnityEngine.Object.Destroy(asset);
283 }
284
285 public InputBinding? bindingMask
286 {
287 get => asset.bindingMask;
288 set => asset.bindingMask = value;
289 }
290
291 public ReadOnlyArray<InputDevice>? devices
292 {
293 get => asset.devices;
294 set => asset.devices = value;
295 }
296
297 public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
298
299 public bool Contains(InputAction action)
300 {
301 return asset.Contains(action);
302 }
303
304 public IEnumerator<InputAction> GetEnumerator()
305 {
306 return asset.GetEnumerator();
307 }
308
309 IEnumerator IEnumerable.GetEnumerator()
310 {
311 return GetEnumerator();
312 }
313
314 public void Enable()
315 {
316 asset.Enable();
317 }
318
319 public void Disable()
320 {
321 asset.Disable();
322 }
323
324 public IEnumerable<InputBinding> bindings => asset.bindings;
325
326 public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
327 {
328 return asset.FindAction(actionNameOrId, throwIfNotFound);
329 }
330
331 public int FindBinding(InputBinding bindingMask, out InputAction action)
332 {
333 return asset.FindBinding(bindingMask, out action);
334 }
335
336 // Gameplay
337 private readonly InputActionMap m_Gameplay;
338 private List<IGameplayActions> m_GameplayActionsCallbackInterfaces = new List<IGameplayActions>();
339 private readonly InputAction m_Gameplay_Move;
340 private readonly InputAction m_Gameplay_Look;
341 private readonly InputAction m_Gameplay_PickUp;
342 private readonly InputAction m_Gameplay_Drop;
343 private readonly InputAction m_Gameplay_Throw;
344 public struct GameplayActions
345 {
346 private @InGameHintsActions m_Wrapper;
347 public GameplayActions(@InGameHintsActions wrapper) { m_Wrapper = wrapper; }
348 public InputAction @Move => m_Wrapper.m_Gameplay_Move;
349 public InputAction @Look => m_Wrapper.m_Gameplay_Look;
350 public InputAction @PickUp => m_Wrapper.m_Gameplay_PickUp;
351 public InputAction @Drop => m_Wrapper.m_Gameplay_Drop;
352 public InputAction @Throw => m_Wrapper.m_Gameplay_Throw;
353 public InputActionMap Get() { return m_Wrapper.m_Gameplay; }
354 public void Enable() { Get().Enable(); }
355 public void Disable() { Get().Disable(); }
356 public bool enabled => Get().enabled;
357 public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); }
358 public void AddCallbacks(IGameplayActions instance)
359 {
360 if (instance == null || m_Wrapper.m_GameplayActionsCallbackInterfaces.Contains(instance)) return;
361 m_Wrapper.m_GameplayActionsCallbackInterfaces.Add(instance);
362 @Move.started += instance.OnMove;
363 @Move.performed += instance.OnMove;
364 @Move.canceled += instance.OnMove;
365 @Look.started += instance.OnLook;
366 @Look.performed += instance.OnLook;
367 @Look.canceled += instance.OnLook;
368 @PickUp.started += instance.OnPickUp;
369 @PickUp.performed += instance.OnPickUp;
370 @PickUp.canceled += instance.OnPickUp;
371 @Drop.started += instance.OnDrop;
372 @Drop.performed += instance.OnDrop;
373 @Drop.canceled += instance.OnDrop;
374 @Throw.started += instance.OnThrow;
375 @Throw.performed += instance.OnThrow;
376 @Throw.canceled += instance.OnThrow;
377 }
378
379 private void UnregisterCallbacks(IGameplayActions instance)
380 {
381 @Move.started -= instance.OnMove;
382 @Move.performed -= instance.OnMove;
383 @Move.canceled -= instance.OnMove;
384 @Look.started -= instance.OnLook;
385 @Look.performed -= instance.OnLook;
386 @Look.canceled -= instance.OnLook;
387 @PickUp.started -= instance.OnPickUp;
388 @PickUp.performed -= instance.OnPickUp;
389 @PickUp.canceled -= instance.OnPickUp;
390 @Drop.started -= instance.OnDrop;
391 @Drop.performed -= instance.OnDrop;
392 @Drop.canceled -= instance.OnDrop;
393 @Throw.started -= instance.OnThrow;
394 @Throw.performed -= instance.OnThrow;
395 @Throw.canceled -= instance.OnThrow;
396 }
397
398 public void RemoveCallbacks(IGameplayActions instance)
399 {
400 if (m_Wrapper.m_GameplayActionsCallbackInterfaces.Remove(instance))
401 UnregisterCallbacks(instance);
402 }
403
404 public void SetCallbacks(IGameplayActions instance)
405 {
406 foreach (var item in m_Wrapper.m_GameplayActionsCallbackInterfaces)
407 UnregisterCallbacks(item);
408 m_Wrapper.m_GameplayActionsCallbackInterfaces.Clear();
409 AddCallbacks(instance);
410 }
411 }
412 public GameplayActions @Gameplay => new GameplayActions(this);
413 private int m_GamepadSchemeIndex = -1;
414 public InputControlScheme GamepadScheme
415 {
416 get
417 {
418 if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
419 return asset.controlSchemes[m_GamepadSchemeIndex];
420 }
421 }
422 private int m_KeyboardMouseSchemeIndex = -1;
423 public InputControlScheme KeyboardMouseScheme
424 {
425 get
426 {
427 if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
428 return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
429 }
430 }
431 public interface IGameplayActions
432 {
433 void OnMove(InputAction.CallbackContext context);
434 void OnLook(InputAction.CallbackContext context);
435 void OnPickUp(InputAction.CallbackContext context);
436 void OnDrop(InputAction.CallbackContext context);
437 void OnThrow(InputAction.CallbackContext context);
438 }
439 }
440}