Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wan2land committed Feb 6, 2024
0 parents commit 80bb477
Show file tree
Hide file tree
Showing 111 changed files with 50,481 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
water2.dist.be
1 change: 1 addition & 0 deletions assets/index-hkveYPoG.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions assets/index-rnwMUwL3.js

Large diffs are not rendered by default.

Binary file added assets/logo-hitvPwsW.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />

<meta
name="description"
hid="description"
content="언제 어디서든 대항해시대2를 웹으로 즐길 수 있어요!"
/>
<meta property="og:title" content="대항해시대2 - 웹버전" />
<meta
property="og:description"
content="언제 어디서든 대항해시대2를 웹으로 즐길 수 있어요!"
/>
<meta property="og:type" content="website" />
<meta property="og:locale" content="ko_KR" />
<meta property="og:site_name" content="대항해시대2 - 웹버전" />
<meta property="og:url" content="https://water2.dist.be" />
<meta property="og:image" content="https://water2.dist.be/thumbnail.png" />

<link
rel="icon"
type="image/png"
sizes="128x128"
href="/favicon-128x128.png"
/>

<title>대항해시대2 - 웹버전</title>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-FSY8L0VCE7"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-FSY8L0VCE7");
</script>
<script type="module" crossorigin src="/assets/index-rnwMUwL3.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-hkveYPoG.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
Binary file added static/favicon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon.ico
Binary file not shown.
Binary file added static/game/mod_correction_v1.08.zip
Binary file not shown.
Binary file added static/game/mod_ernst_v1.11.zip
Binary file not shown.
Binary file added static/game/mod_junghwa_v3.0.zip
Binary file not shown.
Binary file added static/game/water2.zip
Binary file not shown.
1 change: 1 addition & 0 deletions static/js-dos/.tern-port
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42603
2 changes: 2 additions & 0 deletions static/js-dos/direct.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js-dos/direct.js.map

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions static/js-dos/docs/api/js-dos-ts/js-dos-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Autogenerated
-------------

gulpfile.js --> generateBuildInfo

```
export const Build = {
version: "6.22.60 (c3627d34f97fcc6e98ceef7fbea6e090)",
jsVersion: "7e48530baf07daa1d82796f9c209647378a1030a",
wasmJsSize: 189751,
wasmVersion: "df90df0fd894cf6ee026bf847969c3ce",
wasmSize: 1808397,
jsSize: 6657376,
buildSeed: 1622012539860,
};
```


95 changes: 95 additions & 0 deletions static/js-dos/docs/api/js-dos-ts/js-dos-cache-db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@

```import { ICache } from "./js-dos-cache";
export default class CacheDb implements ICache {
public version: string;
private storeName: string = "files";
private indexedDB: IDBFactory;
private db: IDBDatabase | null = null;
constructor(version: string, onready: (cache: ICache) => void, onerror: (msg: string) => void) {
this.version = version;
this.indexedDB = window.indexedDB || (window as any).mozIndexedDB
|| (window as any).webkitIndexedDB || (window as any).msIndexedDB;
if (!this.indexedDB) {
onerror("Indexed db is not supported on this host");
return;
}
const openRequest = this.indexedDB.open("js-dos-cache (" + version + ")", 1);
openRequest.onerror = (event) => {
onerror("Can't open cache database");
};
openRequest.onsuccess = (event) => {
this.db = openRequest.result;
onready(this);
};
openRequest.onupgradeneeded = (event) => {
try {
this.db = openRequest.result;
this.db.onerror = (event) => {
onerror("Can't upgrade cache database");
};
this.db.createObjectStore(this.storeName);
} catch (e) {
onerror("Can't upgrade cache database");
}
};
}
public put(key: string, data: any, onflush: () => void) {
if (this.db === null) {
onflush();
return;
}
const transaction = this.db.transaction(this.storeName, "readwrite");
transaction.oncomplete = () => onflush();
transaction.objectStore(this.storeName).put(data, key);
}
public get(key: string, ondata: (data: any) => void, onerror: (msg: string) => void) {
if (this.db === null) {
onerror("db is not initalized");
return;
}
const transaction = this.db.transaction(this.storeName, "readonly");
const request = transaction.objectStore(this.storeName).get(key);
request.onerror = () => onerror("Can't read value for key '" + key + "'");
request.onsuccess = () => {
if (request.result) {
ondata(request.result);
} else {
onerror("Result is empty for key '" + key + "', result: " + request.result);
}
};
}
public forEach(each: (key: string, value: any) => void, onend: () => void) {
if (this.db === null) {
onend();
return;
}
const transaction = this.db.transaction(this.storeName, "readonly");
const request = transaction.objectStore(this.storeName).openCursor();
request.onerror = () => onend();
request.onsuccess = (event) => {
const cursor = (event.target as any).result as IDBCursorWithValue;
if (cursor) {
each(cursor.key.toString(), cursor.value);
cursor.continue();
} else {
onend();
}
};
}
}
```


23 changes: 23 additions & 0 deletions static/js-dos/docs/api/js-dos-ts/js-dos-cache-noop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

```import { ICache } from "./js-dos-cache";
export default class CacheNoop implements ICache {
public put(key: string, data: any, onflush: () => void) {
```

nothing

``` }
public get(key: string, ondata: (data: any) => void, onerror: (msg: string) => void) {
onerror("Cache is not supported on this host");
}
public forEach(each: (key: string, value: any) => void, onend: () => void) {
onend();
}
}
```


23 changes: 23 additions & 0 deletions static/js-dos/docs/api/js-dos-ts/js-dos-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

```import CacheDb from "./js-dos-cache-db";
import CacheNoop from "./js-dos-cache-noop";
import { DosModule } from "./js-dos-module";
export interface ICache {
put: (key: string, data: any, onflush: () => void) => void;
get: (key: string, ondata: (data: any) => void, onerror: (msg: string) => void) => void;
forEach: (each: (key: string, value: any) => void, onend: () => void) => void;
}
export default function openCache(module: DosModule, onready: (cache: ICache) => void) {
new CacheDb(module.version, onready, (msg: string) => {
if (module.log !== undefined) {
module.log("ERR! Can't initalize cache, cause: " + msg);
}
onready(new CacheNoop());
});
}
```


Loading

0 comments on commit 80bb477

Please sign in to comment.