Skip to content

Instantly share code, notes, and snippets.

View diericx's full-sized avatar

Zac Holland diericx

View GitHub Profile
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
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;
package endpoints_terrariumai_environment
func (e *Entity) ReduceEnergy(uint32 delta) {
}
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
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
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
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 /
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sim-dep
spec:
selector:
matchLabels:
app: sim-dep
replicas: 1
template:
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sim-dep
spec:
selector:
matchLabels:
app: sim-dep
replicas: 1
template:
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 }