handler

package
v0.0.0-...-d1f4204 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

func TemplRender(c echo.Context, component templ.Component) error

Helper to wrap calling a component's Render method.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(db *sqlx.DB) *Handler

func (*Handler) AddPlayerToGame

func (h *Handler) AddPlayerToGame(c echo.Context) error

func (*Handler) AdminActionHistoryPage

func (h *Handler) AdminActionHistoryPage(c echo.Context) error

func (*Handler) AdminDashboardPage

func (h *Handler) AdminDashboardPage(c echo.Context) error

func (*Handler) ApprovePlayerAction

func (h *Handler) ApprovePlayerAction(c echo.Context) error

func (*Handler) CreateGame

func (h *Handler) CreateGame(c echo.Context) error

func (*Handler) DeleteGame

func (h *Handler) DeleteGame(c echo.Context) error

func (*Handler) DeletePlayerAction

func (h *Handler) DeletePlayerAction(c echo.Context) error

func (*Handler) DeletePlayerFromGame

func (h *Handler) DeletePlayerFromGame(c echo.Context) error

func (*Handler) GameDashboardPage

func (h *Handler) GameDashboardPage(c echo.Context) error

func (*Handler) GamePhaseDecrement

func (h *Handler) GamePhaseDecrement(c echo.Context) error

func (*Handler) GamePhaseIncrement

func (h *Handler) GamePhaseIncrement(c echo.Context) error

func (*Handler) IndexPage

func (h *Handler) IndexPage(c echo.Context) error

func (*Handler) JoinGamePage

func (h *Handler) JoinGamePage(c echo.Context) error

func (*Handler) MarkPlayerDead

func (h *Handler) MarkPlayerDead(c echo.Context) error

func (*Handler) PlayerDashboardPage

func (h *Handler) PlayerDashboardPage(c echo.Context) error

func (*Handler) PlayerFlashcard

func (h *Handler) PlayerFlashcard(c echo.Context) error

func (*Handler) SearchAbility

func (h *Handler) SearchAbility(c echo.Context) error

func (*Handler) SearchRole

func (h *Handler) SearchRole(c echo.Context) error

func (*Handler) SubmitPlayerAction

func (h *Handler) SubmitPlayerAction(c echo.Context) error

func (*Handler) UpdatePlayerActionNote

func (h *Handler) UpdatePlayerActionNote(c echo.Context) error

func (*Handler) UpdatePlayerNotes

func (h *Handler) UpdatePlayerNotes(c echo.Context) error

Jump to

Keyboard shortcuts

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