@rpg-engine/long-bow 0.3.57 → 0.3.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.3.57",
3
+ "version": "0.3.58",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -5,7 +5,7 @@ import { uiColors } from '../../constants/uiColors';
5
5
  import { SpellShortcut } from '../Spellbook/QuickSpells';
6
6
 
7
7
  export type CircularControllerProps = {
8
- onActionPointerDown: () => void;
8
+ onActionClick: () => void;
9
9
  onCancelClick: () => void;
10
10
  onSpellClick: (spellKey: string) => void;
11
11
  mana: number;
@@ -13,7 +13,7 @@ export type CircularControllerProps = {
13
13
  };
14
14
 
15
15
  export const CircularController: React.FC<CircularControllerProps> = ({
16
- onActionPointerDown,
16
+ onActionClick,
17
17
  onCancelClick,
18
18
  onSpellClick,
19
19
  mana,
@@ -64,7 +64,7 @@ export const CircularController: React.FC<CircularControllerProps> = ({
64
64
  </SpellsContainer>
65
65
  <Button
66
66
  onTouchStart={onTouchStart}
67
- onTouchEnd={onTouchEnd.bind(null, onActionPointerDown)}
67
+ onTouchEnd={onTouchEnd.bind(null, onActionClick)}
68
68
  >
69
69
  <div className="rpgui-icon sword" />
70
70
  </Button>
@@ -27,7 +27,7 @@ Default.args = {
27
27
  localStorage.getItem(SPELL_SHORTCUTS_STORAGE_KEY) as string
28
28
  ),
29
29
  onSpellClick: key => console.log(key),
30
- onActionPointerDown: () => console.log('action'),
30
+ onActionClick: () => console.log('action'),
31
31
  onCancelClick: () => console.log('cancel attack'),
32
32
  mana: 100,
33
33
  };