This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from "prop-types"; | |
import { Stage, Layer, Rect, Image } from "react-konva"; | |
import { Typography } from "@material-ui/core"; | |
import EntityRect from "./entityRect"; | |
import { withStyles } from "@material-ui/styles"; | |
import EffectRect from "./effectRect"; | |
// TODO: This should not be hard coded! | |
const ENV_MAX_POSITION = 100 // Max position an entity can be in, defined by the environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import EnvRender from "../components/konva/envRender"; | |
import { compose } from "redux"; | |
import { withStyles } from "@material-ui/core"; | |
import { GetEntitiesInRegion } from "../lib/environmentApi"; | |
import update from 'immutability-helper'; | |
const LEFT_KEY_CODE = 37; | |
const RIGHT_KEY_CODE = 39; | |
const UP_KEY_CODE = 38; | |
const DOWN_KEY_CODE = 40; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package endpoints_terrariumai_environment | |
func (e *Entity) ReduceEnergy(uint32 delta) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apis: | |
- methods: | |
- name: CreateEntity | |
requestTypeUrl: type.googleapis.com/endpoints.terrariumai.environment.CreateEntityRequest | |
responseTypeUrl: type.googleapis.com/endpoints.terrariumai.environment.CreateEntityResponse | |
- name: GetEntity | |
requestTypeUrl: type.googleapis.com/endpoints.terrariumai.environment.GetEntityRequest | |
responseTypeUrl: type.googleapis.com/endpoints.terrariumai.environment.GetEntityResponse | |
- name: DeleteEntity | |
requestTypeUrl: type.googleapis.com/endpoints.terrariumai.environment.DeleteEntityRequest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 9091 } | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 9091 } | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest as certs | |
RUN apk --update add ca-certificates | |
FROM scratch | |
ENV PATH=/bin | |
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | |
ADD main / | |
ADD serviceAccountKey.json / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sim-dep | |
spec: | |
selector: | |
matchLabels: | |
app: sim-dep | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sim-dep | |
spec: | |
selector: | |
matchLabels: | |
app: sim-dep | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin: | |
access_log_path: /tmp/admin_access.log | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 9901 } | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 8080 } |