mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-12 23:14:58 +00:00
add cloudflare deploy
This commit is contained in:
parent
e7315c043a
commit
5676aaf378
31 changed files with 82 additions and 41 deletions
|
|
@ -71,8 +71,8 @@ import type { PlayerEntity } from "../state/gameEntityTypes";
|
|||
*/
|
||||
export const playerEyePositions = new Map<string, Vector3>();
|
||||
|
||||
const SKIN_BASE_URL = "https://exogen.github.io/t2-skins/skins/";
|
||||
const SKIN_MANIFEST_URL = "https://exogen.github.io/t2-skins/skins.json";
|
||||
const SKIN_BASE_URL = "https://assets.tribes2.online/skins/files/";
|
||||
const SKIN_MANIFEST_URL = "https://assets.tribes2.online/skins/manifest.json";
|
||||
|
||||
/** Map shape DTS name to skin texture suffix. */
|
||||
const SKIN_SUFFIXES: Record<string, string> = {
|
||||
|
|
|
|||
|
|
@ -14,9 +14,8 @@ const log = createLogger("loaders");
|
|||
|
||||
export type { TerrainFile };
|
||||
|
||||
export const BASE_URL = "/t2-mapper";
|
||||
export const RESOURCE_ROOT_URL = `${BASE_URL}/base/`;
|
||||
export const FALLBACK_TEXTURE_URL = `${BASE_URL}/white.png`;
|
||||
export const RESOURCE_ROOT_URL = `${process.env.BASE_PATH}base/`;
|
||||
export const FALLBACK_TEXTURE_URL = `${process.env.BASE_PATH}white.png`;
|
||||
|
||||
export function getUrlForPath(resourcePath: string, fallbackUrl?: string) {
|
||||
let resourceKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue