Skip to content

Commit

Permalink
PreRelease v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
80LK committed Jul 31, 2021
1 parent 43e7932 commit dcaf44d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Unreliased
# PreRelease v3.0
- Rewrite in TypeScript
- Add SoundPool
- Support multiplayer
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/FileWatcher.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils {
const File = java.io.File;
type File = java.io.File;
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils.Logger {
const TAG = "SoundAPI";

Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Timer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils {
const Thread = java.lang.Thread;
type Thread = java.lang.Thread;
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Updatable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils {
export abstract class Updatable {
protected remove: boolean = false;
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils {
const cacheDurstion: Dict<number> = {}
function readDuration(file: string) {
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Vector.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils.Vector {
export function getDistance(A: Vector, B: Vector): number {
return Math.sqrt(Math.pow(A.x - B.x, 2) + Math.pow(A.y - B.y, 2) + Math.pow(A.z - B.z, 2));
Expand Down
3 changes: 3 additions & 0 deletions src/lib/api/Utils/Volume.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Don't export namespace
*/
namespace Utils {
export namespace Volume {
const settings_path = FileTools.root + "/games/com.mojang/minecraftpe/options.txt";
Expand Down

0 comments on commit dcaf44d

Please sign in to comment.