core

package
v0.0.0-...-39adbb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Building

type Building struct {
	ID   string
	Name string
}

Building Data struct

type Hero

type Hero struct {
	ID   string
	Name string
}

Hero Data struct

type Player

type Player struct {
	ID       primitive.ObjectID `bson:"_id"`
	Username string             `bson:"username"`
	Created  int64              `bson:"created"`

	Crystal int64

	PrivateTiles []Tile
	GlobalTiles  []Tile
	Heroes       []Hero

	Gold  int64 `bson:"gold" json:"gold"`
	Food  int64 `bson:"food" json:"food"`
	Wood  int64 `bson:"wood" json:"wood"`
	Stone int64 `bson:"stone" json:"stone"`
	Iron  int64 `bson:"iron" json:"iron"`
}

Player Data struct

type Tile

type Tile struct {
	ID        string     `bson:"tid" json:"tid"`
	Name      string     `bson:"name" json:"name"`
	Type      int8       `bson:"type" json:"type"`
	Terrain   int8       `bson:"terrain" json:"terrain"`
	Buildings []Building `bson:"buildings" json:"buildings"`
}

Tile Data struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL