Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Collection *mgo.Collection Session mgo.Session )
Functions ¶
func DeleteMonster ¶
func DeletePlayer ¶
Types ¶
type Monster ¶
type Monster struct { ID bson.ObjectId `bson:"_id" json:"id"` Initiative int `json:"initiative"` AC int `json:"ac"` HP int `json:"hp"` Health int `json:"health"` Damage int `json:"damage"` Speed string `json:"speed"` Monster string `json:"monster"` Challange int `json:"challange"` XP int `json:"xp"` Manual int `json:"manual"` }
User stores a users name
func InsertMonster ¶
func NewMonster ¶
func NewMonster() *Monster
type Player ¶
type Player struct { ID bson.ObjectId `bson:"_id" json:"id"` Initiative int `json:"initiative"` AC int `json:"ac"` HP int `json:"hp"` Health int `json:"health"` Damage int `json:"damage"` Speed string `json:"speed"` Name string `json:"name"` Character string `json:"character"` }
User stores a users name
func InsertPlayer ¶
Click to show internal directories.
Click to hide internal directories.