Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit c4abd81

Browse files
committed
- Add the new socket server
1 parent 70acade commit c4abd81

File tree

5,463 files changed

+173
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,463 files changed

+173
-64
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ Homestead.json
2121
Homestead.yaml
2222
npm-debug.log
2323
yarn-error.log
24+
25+
tiles

README.md

Lines changed: 2 additions & 0 deletions

app/Http/Controllers/MapController.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace App\Http\Controllers;
44

5-
use App\Helpers\OPFWHelper;
65
use App\Server;
76
use Illuminate\Http\Request;
87
use Inertia\Inertia;
@@ -23,7 +22,6 @@ public function index(Request $request): Response
2322
$serverIps = [];
2423
foreach ($rawServerIps as $index => $rawServerIp) {
2524
$serverIps[] = [
26-
'id' => $index,
2725
'name' => Server::getServerName($rawServerIp),
2826
];
2927
}
@@ -33,29 +31,4 @@ public function index(Request $request): Response
3331
]);
3432
}
3533

36-
/**
37-
* Cached data api
38-
*
39-
* @param Request $request
40-
* @return \Illuminate\Http\Response
41-
*/
42-
public function data(Request $request): \Illuminate\Http\Response
43-
{
44-
$server = intval($request->query('server', 0)) ?? 0;
45-
46-
$data = [];
47-
$serverIps = explode(',', env('OP_FW_SERVERS', ''));
48-
if ($serverIps) {
49-
$ip = $serverIps[0];
50-
if (isset($serverIps[$server])) {
51-
$ip = $serverIps[$server];
52-
}
53-
54-
$data = OPFWHelper::getWorldJSON($ip);
55-
}
56-
57-
return (new \Illuminate\Http\Response(json_encode($data), 200))
58-
->header('Content-Type', 'application/json');
59-
}
60-
6134
}

public/images/circle_red.png

4.57 KB

public/images/tiles/2_0_0.jpg

-13.1 KB
Binary file not shown.

public/images/tiles/2_0_1.jpg

-13.1 KB
Binary file not shown.

public/images/tiles/2_0_2.jpg

-19.3 KB
Binary file not shown.

public/images/tiles/2_0_3.jpg

-19.3 KB
Binary file not shown.

public/images/tiles/2_1_0.jpg

-13.6 KB
Binary file not shown.

public/images/tiles/2_1_1.jpg

-37.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)