~starkingdoms/starkingdoms

ref: 70f733c52cd18bc7b3ed332a4998ff7b87eb50bf starkingdoms/starkingdoms-client/src/textures.ts -rw-r--r-- 484 bytes
70f733c5TerraMaster85 Thought I fixed the footer. Done anyway 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { PartType, PlanetType } from "./protocol.ts";
import tex_earth from "./assets/earth.svg";
import tex_hearty from "./assets/hearty.svg";
import tex_missing from "./assets/missing.svg";

export function planet_texture_url(type: PlanetType): string {
  if (type == PlanetType.Earth) {
    return tex_earth;
  }
  return tex_missing;
}

export function part_texture_url(type: PartType): string {
  if (type == PartType.Hearty) {
    return tex_hearty;
  }
  return tex_missing;
}