@reldens/utils 0.10.0 → 0.11.0
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/README.md +4 -4
- package/lib/interaction-area.js +1 -1
- package/lib/logger.js +7 -7
- package/lib/shortcuts.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
- Interaction area calculation helper.
|
|
8
8
|
- Shortcuts.
|
|
9
|
-
- Logger
|
|
10
|
-
- Error Manager
|
|
11
|
-
- Events Manager
|
|
9
|
+
- Logger.
|
|
10
|
+
- Error Manager.
|
|
11
|
+
- Events Manager.
|
|
12
12
|
|
|
13
13
|
Need something specific?
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ Need something specific?
|
|
|
18
18
|
|
|
19
19
|
## Documentation
|
|
20
20
|
|
|
21
|
-
[https://www.reldens.com/documentation/
|
|
21
|
+
[https://www.reldens.com/documentation/utils/](https://www.reldens.com/documentation/utils/)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
---
|
package/lib/interaction-area.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
*
|
|
3
3
|
* Reldens - InteractionArea
|
|
4
4
|
*
|
|
5
|
-
* This class is used to validate the area for
|
|
5
|
+
* This class is used to validate the area for a specific object or action, for example if player A target player B
|
|
6
6
|
* by clicking on it and then run an action (by pressing space bar or using the action button), the action will
|
|
7
7
|
* be only valid and executed if player A is inside the interactive area of player B.
|
|
8
8
|
*
|
package/lib/logger.js
CHANGED
|
@@ -10,14 +10,14 @@ class Logger
|
|
|
10
10
|
{
|
|
11
11
|
logLevels = {
|
|
12
12
|
none: 0,
|
|
13
|
-
debug: 8, // debug-level messages
|
|
14
|
-
info: 7, // informational messages
|
|
15
|
-
notice: 6, // normal but significant condition
|
|
16
|
-
warning: 5, // warning conditions
|
|
17
|
-
error: 4, // error conditions
|
|
18
|
-
critical: 3, // critical conditions
|
|
19
|
-
alert: 2, // action must be taken immediately
|
|
20
13
|
emergency: 1, // system is unusable
|
|
14
|
+
alert: 2, // action must be taken immediately
|
|
15
|
+
critical: 3, // critical conditions
|
|
16
|
+
error: 4, // error conditions
|
|
17
|
+
warning: 5, // warning conditions
|
|
18
|
+
notice: 6, // normal but significant condition
|
|
19
|
+
info: 7, // informational messages
|
|
20
|
+
debug: 8 // debug-level messages
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
constructor()
|
package/lib/shortcuts.js
CHANGED