hytopia 0.1.29 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/README.md +3 -26
  2. package/bin/scripts.js +15 -8
  3. package/docs/server.blocktype.md +2 -2
  4. package/docs/server.blocktype.onentitycollision.md +1 -1
  5. package/docs/server.blocktype.onentitycontactforce.md +1 -1
  6. package/docs/server.defaultcharactercontroller.canjump.md +1 -1
  7. package/docs/server.defaultcharactercontroller.canrun.md +1 -1
  8. package/docs/server.defaultcharactercontroller.canwalk.md +1 -1
  9. package/docs/server.defaultcharactercontroller.md +3 -3
  10. package/docs/server.entity.createcustomcharactercontroller.md +2 -2
  11. package/docs/server.entity.md +9 -9
  12. package/docs/server.entity.onblockcollision.md +1 -1
  13. package/docs/server.entity.onblockcontactforce.md +1 -1
  14. package/docs/server.entity.ondespawn.md +1 -1
  15. package/docs/server.entity.onentitycollision.md +1 -1
  16. package/docs/server.entity.onentitycontactforce.md +1 -1
  17. package/docs/server.entity.onspawn.md +1 -1
  18. package/docs/server.entity.ontick.md +1 -1
  19. package/docs/server.entityoptions.createcustomcharactercontroller.md +13 -0
  20. package/docs/server.entityoptions.md +19 -0
  21. package/docs/server.hytopia.blocktype.md +2 -2
  22. package/docs/server.hytopia.blocktype.onentitycollision.md +1 -1
  23. package/docs/server.hytopia.blocktype.onentitycontactforce.md +1 -1
  24. package/docs/server.hytopia.defaultcharactercontroller.canjump.md +1 -1
  25. package/docs/server.hytopia.defaultcharactercontroller.canrun.md +1 -1
  26. package/docs/server.hytopia.defaultcharactercontroller.canwalk.md +1 -1
  27. package/docs/server.hytopia.defaultcharactercontroller.md +3 -3
  28. package/docs/server.hytopia.entity.createcustomcharactercontroller.md +2 -2
  29. package/docs/server.hytopia.entity.md +9 -9
  30. package/docs/server.hytopia.entity.onblockcollision.md +1 -1
  31. package/docs/server.hytopia.entity.onblockcontactforce.md +1 -1
  32. package/docs/server.hytopia.entity.ondespawn.md +1 -1
  33. package/docs/server.hytopia.entity.onentitycollision.md +1 -1
  34. package/docs/server.hytopia.entity.onentitycontactforce.md +1 -1
  35. package/docs/server.hytopia.entity.onspawn.md +1 -1
  36. package/docs/server.hytopia.entity.ontick.md +1 -1
  37. package/docs/server.hytopia.entityoptions.createcustomcharactercontroller.md +13 -0
  38. package/docs/server.hytopia.entityoptions.md +19 -0
  39. package/docs/server.hytopia.moveoptions.md +5 -0
  40. package/docs/server.hytopia.simplecharactercontroller.md +1 -1
  41. package/docs/server.moveoptions.md +5 -0
  42. package/docs/server.simplecharactercontroller.md +1 -1
  43. package/examples/entity-spawn/index.ts +1 -1
  44. package/examples/payload-game/index.ts +46 -104
  45. package/package.json +1 -1
  46. package/server.api.json +142 -60
  47. package/server.d.ts +51 -33
  48. package/server.js +25 -25
  49. package/tsconfig.json +4 -1
  50. package/examples/character-controller/package.json +0 -14
  51. package/examples/character-controller/tsconfig.json +0 -27
  52. package/examples/entity-spawn/package.json +0 -14
  53. package/examples/entity-spawn/tsconfig.json +0 -27
  54. package/examples/payload-game/package.json +0 -14
  55. package/examples/payload-game/tsconfig.json +0 -27
package/tsconfig.json CHANGED
@@ -12,7 +12,10 @@
12
12
  "strictNullChecks": true,
13
13
  "esModuleInterop": true,
14
14
  "resolveJsonModule": true,
15
- "baseUrl": "."
15
+ "baseUrl": "./",
16
+ "paths": {
17
+ "hytopia": ["./"]
18
+ }
16
19
  },
17
20
  "include": ["./**/*"],
18
21
  "exclude": ["bin/**/*", "node_modules/**/*"]
@@ -1,14 +0,0 @@
1
- {
2
- "name": "character-controller",
3
- "module": "index.ts",
4
- "type": "module",
5
- "devDependencies": {
6
- "@types/bun": "latest"
7
- },
8
- "peerDependencies": {
9
- "typescript": "^5.0.0"
10
- },
11
- "dependencies": {
12
- "hytopia": "latest"
13
- }
14
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Enable latest features
4
- "lib": ["ESNext", "DOM"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
-
22
- // Some stricter flags (disabled by default)
23
- "noUnusedLocals": false,
24
- "noUnusedParameters": false,
25
- "noPropertyAccessFromIndexSignature": false
26
- }
27
- }
@@ -1,14 +0,0 @@
1
- {
2
- "name": "entity-spawn",
3
- "module": "index.ts",
4
- "type": "module",
5
- "devDependencies": {
6
- "@types/bun": "latest"
7
- },
8
- "peerDependencies": {
9
- "typescript": "^5.0.0"
10
- },
11
- "dependencies": {
12
- "hytopia": "latest"
13
- }
14
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Enable latest features
4
- "lib": ["ESNext", "DOM"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
-
22
- // Some stricter flags (disabled by default)
23
- "noUnusedLocals": false,
24
- "noUnusedParameters": false,
25
- "noPropertyAccessFromIndexSignature": false
26
- }
27
- }
@@ -1,14 +0,0 @@
1
- {
2
- "name": "entity-spawn",
3
- "module": "index.ts",
4
- "type": "module",
5
- "devDependencies": {
6
- "@types/bun": "latest"
7
- },
8
- "peerDependencies": {
9
- "typescript": "^5.0.0"
10
- },
11
- "dependencies": {
12
- "hytopia": "latest"
13
- }
14
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Enable latest features
4
- "lib": ["ESNext", "DOM"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
-
22
- // Some stricter flags (disabled by default)
23
- "noUnusedLocals": false,
24
- "noUnusedParameters": false,
25
- "noPropertyAccessFromIndexSignature": false
26
- }
27
- }