Add playable hub travel with durable character transfers
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
{{- range .Values.worlds -}}
|
||||
{{- if hasKey $ids .id -}}{{- fail "world IDs must be unique" -}}{{- end -}}
|
||||
{{- $_ := set $ids .id true -}}
|
||||
{{- if not (has (default "survival" .kind) (list "survival" "hub")) -}}{{- fail "world kind must be survival or hub" -}}{{- end -}}
|
||||
{{- $host := default .host $root.Values.portal.host -}}
|
||||
{{- $directory = append $directory (dict "id" .id "url" (printf "https://%s/game?world=%s" $host .id)) -}}
|
||||
{{- end -}}
|
||||
@@ -60,6 +61,7 @@ spec:
|
||||
- { name: APP_ENV, value: production }
|
||||
- { name: LISTEN_ADDR, value: "0.0.0.0:8080" }
|
||||
- { name: WORLD_ID, value: {{ .id | quote }} }
|
||||
- { name: WORLD_KIND, value: {{ default "survival" .kind | quote }} }
|
||||
- { name: WORLD_SEED, value: {{ .seed | quote }} }
|
||||
- { name: PUBLIC_URL, value: {{ printf "https://%s" $host | quote }} }
|
||||
- { name: WORLD_DIRECTORY, value: {{ $directory | toJson | quote }} }
|
||||
|
||||
@@ -30,6 +30,14 @@ worlds:
|
||||
- id: world-001
|
||||
seed: "734291"
|
||||
host: srs.aeternalisgames.com
|
||||
- id: hub-001
|
||||
kind: hub
|
||||
seed: "927410"
|
||||
host: srs.aeternalisgames.com
|
||||
- id: hub-002
|
||||
kind: hub
|
||||
seed: "927411"
|
||||
host: srs.aeternalisgames.com
|
||||
networkPolicy:
|
||||
enabled: true
|
||||
ingressNamespace: kube-system
|
||||
|
||||
Reference in New Issue
Block a user