示例#1
0
文件: board.go 项目: Garoth/StAbbey
func NewBoard(b interfaces.Board) *Board {
	sb := &Board{}

	sb.Level = b.GetId()
	sb.Layers = make([][]string, 1)
	sb.Layers[0] = b.GetRender()

	return sb
}
示例#2
0
文件: game.go 项目: Garoth/StAbbey
func (g *Game) AddBoard(board interfaces.Board) {
	g.Boards[board.GetId()] = board
}