Move the real player authority to server
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- Add rust bindings for the server player controller - Implement reconciliation loop for checking the player state - Place spawners on the test map - Add Containerfile and helm chart
This commit is contained in:
15
helm/charts/helm-library/templates/_errors.tpl
Normal file
15
helm/charts/helm-library/templates/_errors.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
{{- define "lib.error.noCtx" -}} {{- /* define[0] */ -}}
|
||||
{{- if not .ctx -}}{{- fail "no context provided" -}}{{- end -}}
|
||||
{{- if not (kindIs "map" .ctx) -}} {{- /* if[1] */ -}}
|
||||
{{- fail "unexpected type of ctx" -}}
|
||||
{{- end -}} {{- /* /if[1] */ -}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
||||
|
||||
{{- define "lib.error.noKey" -}} {{- /* define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{- if not .key -}}{{ fail "error handler must receive a key to find" }}{{- end -}}
|
||||
{{- if not (hasKey .ctx .key) -}} {{- /* if[1] */ -}}
|
||||
{{- fail (printf "key %s must be not null" .key) -}}
|
||||
{{- end -}} {{- /* /if[1] */ -}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
||||
|
Reference in New Issue
Block a user