Documentation ¶
Index ¶
- Variables
- func TemplRender(c echo.Context, component templ.Component) error
- type Handler
- func (h *Handler) AddPlayerToGame(c echo.Context) error
- func (h *Handler) AdminActionHistoryPage(c echo.Context) error
- func (h *Handler) AdminDashboardPage(c echo.Context) error
- func (h *Handler) ApprovePlayerAction(c echo.Context) error
- func (h *Handler) CreateGame(c echo.Context) error
- func (h *Handler) DeleteGame(c echo.Context) error
- func (h *Handler) DeletePlayerAction(c echo.Context) error
- func (h *Handler) DeletePlayerFromGame(c echo.Context) error
- func (h *Handler) GameDashboardPage(c echo.Context) error
- func (h *Handler) GamePhaseDecrement(c echo.Context) error
- func (h *Handler) GamePhaseIncrement(c echo.Context) error
- func (h *Handler) IndexPage(c echo.Context) error
- func (h *Handler) JoinGamePage(c echo.Context) error
- func (h *Handler) MarkPlayerDead(c echo.Context) error
- func (h *Handler) PlayerDashboardPage(c echo.Context) error
- func (h *Handler) PlayerFlashcard(c echo.Context) error
- func (h *Handler) SearchAbility(c echo.Context) error
- func (h *Handler) SearchRole(c echo.Context) error
- func (h *Handler) SubmitPlayerAction(c echo.Context) error
- func (h *Handler) UpdatePlayerActionNote(c echo.Context) error
- func (h *Handler) UpdatePlayerNotes(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ActionPriority = map[string]int{
"Alteration": 1,
"Reactive": 2,
"Redirection": 3,
"Visit Redirection": 3,
"Investigation": 4,
"Protection": 5,
"Visit Blocking": 6,
"Vote Immunity": 7,
"Vote Manipulation": 8,
"Vote Blocking": 8,
"Support": 9,
"Debuff": 10,
"Theft": 11,
"Healing": 12,
"Destruction": 13,
"Killing": 14,
"Last: (exception): Detective's Solve": 15,
}
)
Key value of queue order of action types
View Source
var CurrentGameRoles = []string{"Agent", "Detective", "Gunman", "Lawyer", "Nurse", "Knight", "Seraph", "Architect", "Amalgamation", "Empress", "Mercenary", "Succubus", "Actress", "Assassin", "Highwayman", "Jester", "Sommelier", "Witchdoctor", "Wraith"}
Functions ¶
func TemplRender ¶
Helper to wrap calling a component's Render method.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AddPlayerToGame ¶
func (*Handler) AdminActionHistoryPage ¶
func (*Handler) AdminDashboardPage ¶
func (*Handler) ApprovePlayerAction ¶
func (*Handler) CreateGame ¶
func (*Handler) DeleteGame ¶
func (*Handler) DeletePlayerAction ¶
func (*Handler) DeletePlayerFromGame ¶
func (*Handler) GameDashboardPage ¶
func (*Handler) GamePhaseDecrement ¶
func (*Handler) GamePhaseIncrement ¶
func (*Handler) JoinGamePage ¶
func (*Handler) MarkPlayerDead ¶
func (*Handler) PlayerDashboardPage ¶
func (*Handler) PlayerFlashcard ¶
func (*Handler) SearchAbility ¶
func (*Handler) SearchRole ¶
func (*Handler) SubmitPlayerAction ¶
func (*Handler) UpdatePlayerActionNote ¶
func (*Handler) UpdatePlayerNotes ¶
Click to show internal directories.
Click to hide internal directories.