From dcaf44db5129f9bb9d07f51331110327c90f2f4d Mon Sep 17 00:00:00 2001 From: 80LK <80lkru@gmail.com> Date: Sat, 31 Jul 2021 20:55:38 +0300 Subject: [PATCH] PreRelease v3.0 --- CHANGELOG.md | 2 +- src/lib/api/Utils/FileWatcher.ts | 3 +++ src/lib/api/Utils/Logger.ts | 3 +++ src/lib/api/Utils/Timer.ts | 3 +++ src/lib/api/Utils/Updatable.ts | 3 +++ src/lib/api/Utils/Utils.ts | 3 +++ src/lib/api/Utils/Vector.ts | 3 +++ src/lib/api/Utils/Volume.ts | 3 +++ 8 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25ca5db..828c656 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Unreliased +# PreRelease v3.0 - Rewrite in TypeScript - Add SoundPool - Support multiplayer diff --git a/src/lib/api/Utils/FileWatcher.ts b/src/lib/api/Utils/FileWatcher.ts index a94f5e7..e720c5c 100644 --- a/src/lib/api/Utils/FileWatcher.ts +++ b/src/lib/api/Utils/FileWatcher.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils { const File = java.io.File; type File = java.io.File; diff --git a/src/lib/api/Utils/Logger.ts b/src/lib/api/Utils/Logger.ts index 64925ce..e419e26 100644 --- a/src/lib/api/Utils/Logger.ts +++ b/src/lib/api/Utils/Logger.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils.Logger { const TAG = "SoundAPI"; diff --git a/src/lib/api/Utils/Timer.ts b/src/lib/api/Utils/Timer.ts index cd1f74b..35e678c 100644 --- a/src/lib/api/Utils/Timer.ts +++ b/src/lib/api/Utils/Timer.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils { const Thread = java.lang.Thread; type Thread = java.lang.Thread; diff --git a/src/lib/api/Utils/Updatable.ts b/src/lib/api/Utils/Updatable.ts index 3e15572..57a1734 100644 --- a/src/lib/api/Utils/Updatable.ts +++ b/src/lib/api/Utils/Updatable.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils { export abstract class Updatable { protected remove: boolean = false; diff --git a/src/lib/api/Utils/Utils.ts b/src/lib/api/Utils/Utils.ts index b11bd59..7110bcd 100644 --- a/src/lib/api/Utils/Utils.ts +++ b/src/lib/api/Utils/Utils.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils { const cacheDurstion: Dict = {} function readDuration(file: string) { diff --git a/src/lib/api/Utils/Vector.ts b/src/lib/api/Utils/Vector.ts index 63edad3..0c43fbb 100644 --- a/src/lib/api/Utils/Vector.ts +++ b/src/lib/api/Utils/Vector.ts @@ -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)); diff --git a/src/lib/api/Utils/Volume.ts b/src/lib/api/Utils/Volume.ts index 9c84abc..f0f6889 100644 --- a/src/lib/api/Utils/Volume.ts +++ b/src/lib/api/Utils/Volume.ts @@ -1,3 +1,6 @@ +/** + * Don't export namespace + */ namespace Utils { export namespace Volume { const settings_path = FileTools.root + "/games/com.mojang/minecraftpe/options.txt";