Documentation ¶
Index ¶
- func Start()
- type Assets
- type Badge
- type ChatHistory
- type ChatMessage
- type ChatPlayer
- type Condition
- type Config
- type ConfigFile
- type EventExp
- type EventLocation
- type EventLocationData
- type EventPeriod
- type EventVm
- type EventsData
- type Minigame
- type Party
- type Picture
- type PlayerBadge
- type PlayerFriend
- type PlayerInfo
- type PlayerListData
- type PlayerListFullData
- type PlayerScreenshotData
- type Room
- type RoomClient
- type SClientMap
- type ScreenshotData
- type ScreenshotOwner
- type SessionClient
- type SimplePlayerBadge
- type TimeTrialRecord
- type WebhookRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
func (*Assets) IsValidPicture ¶
func (*Assets) IsValidSound ¶
func (*Assets) IsValidSprite ¶
type Badge ¶
type Badge struct { Group string `json:"group"` Order int `json:"order"` MapOrder int `json:"mapOrder"` Bp int `json:"bp"` ReqType string `json:"reqType"` ReqInt int `json:"reqInt"` ReqString string `json:"reqString"` ReqStrings []string `json:"reqStrings"` ReqStringArrays [][]string `json:"reqStringArrays"` ReqCount int `json:"reqCount"` Map int `json:"map"` MapX int `json:"mapX"` MapY int `json:"mapY"` Secret bool `json:"secret"` SecretMap bool `json:"secretMap"` SecretCondition bool `json:"secretCondition"` Hidden bool `json:"hidden"` Parent string `json:"parent"` OverlayType int `json:"overlayType"` Art string `json:"art"` Animated bool `json:"animated"` Batch int `json:"batch"` Dev bool `json:"dev"` }
type ChatHistory ¶
type ChatHistory struct { Players []*ChatPlayer `json:"players"` Messages []*ChatMessage `json:"messages"` }
type ChatMessage ¶
type ChatMessage struct { MsgId string `json:"msgId"` Uuid string `json:"uuid"` MapId string `json:"mapId"` PrevMapId string `json:"prevMapId"` PrevLocations string `json:"prevLocations"` X int `json:"x"` Y int `json:"y"` Contents string `json:"contents"` Timestamp time.Time `json:"timestamp"` Party bool `json:"party"` }
type ChatPlayer ¶
type Condition ¶
type Condition struct { ConditionId string `json:"conditionId"` Map int `json:"map"` MapX1 int `json:"mapX1"` MapY1 int `json:"mapY1"` MapX2 int `json:"mapX2"` MapY2 int `json:"mapY2"` SwitchId int `json:"switchId"` SwitchValue bool `json:"switchValue"` SwitchIds []int `json:"switchIds"` SwitchValues []bool `json:"switchValues"` SwitchDelay bool `json:"switchDelay"` VarId int `json:"varId"` VarValue int `json:"varValue"` VarValue2 int `json:"varValue2"` VarOp string `json:"varOp"` VarIds []int `json:"varIds"` VarValues []int `json:"varValues"` VarOps []string `json:"varOps"` VarDelay bool `json:"varDelay"` VarTrigger bool `json:"varTrigger"` Trigger string `json:"trigger"` Value string `json:"value"` Values []string `json:"values"` TimeTrial bool `json:"timeTrial"` Disabled bool `json:"disabled"` }
type ConfigFile ¶
type ConfigFile struct { GameName string `yaml:"game_name"` GamePath string `yaml:"game_path"` DbUser string `yaml:"db_user"` DbPass string `yaml:"db_pass"` DbAddr string `yaml:"db_addr"` DbName string `yaml:"db_name"` SpRooms string `yaml:"sp_rooms"` BadSounds string `yaml:"bad_sounds"` PictureNames string `yaml:"picture_names"` PicturePrefixes string `yaml:"picture_prefixes"` BattleAnimIds string `yaml:"battle_anim_ids"` ChatWebhook string `yaml:"chat_webhook"` ScreenshotWebhook string `yaml:"screenshot_webhook"` Logging struct { MaxSize int `yaml:"max_size"` MaxBackups int `yaml:"max_backups"` MaxAge int `yaml:"max_age"` } `yaml:"logging"` }
type EventLocation ¶
type EventLocation struct { Id int `json:"id"` Type int `json:"type"` Game string `json:"game"` Title string `json:"title"` TitleJP string `json:"titleJP"` Depth int `json:"depth"` MinDepth int `json:"minDepth,omitempty"` Exp int `json:"exp"` EndDate time.Time `json:"endDate"` Complete bool `json:"complete"` }
type EventLocationData ¶
type EventPeriod ¶
type EventsData ¶
type EventsData struct { Locations []*EventLocation `json:"locations"` Vms []*EventVm `json:"vms"` }
type PlayerBadge ¶
type PlayerBadge struct { BadgeId string `json:"badgeId"` Game string `json:"game"` Group string `json:"group"` Bp int `json:"bp"` MapId int `json:"mapId"` MapX int `json:"mapX"` MapY int `json:"mapY"` Seconds int `json:"seconds"` Secret bool `json:"secret"` SecretCondition bool `json:"secretCondition"` Hidden bool `json:"hidden"` OverlayType int `json:"overlayType"` Art string `json:"art"` Animated bool `json:"animated"` Percent float32 `json:"percent"` Goals int `json:"goals"` GoalsTotal int `json:"goalsTotal"` Unlocked bool `json:"unlocked"` NewUnlock bool `json:"newUnlock"` }
type PlayerFriend ¶
type PlayerFriend struct { PlayerListFullData Game string `json:"game"` Incoming bool `json:"incoming"` Accepted bool `json:"accepted"` }
type PlayerInfo ¶
type PlayerListData ¶
type PlayerListData struct { Uuid string `json:"uuid"` Name string `json:"name"` SystemName string `json:"systemName"` Rank int `json:"rank"` Account bool `json:"account"` Badge string `json:"badge"` Medals [5]int `json:"medals"` SpriteName string `json:"spriteName"` SpriteIndex int `json:"spriteIndex"` }
type PlayerListFullData ¶
type PlayerScreenshotData ¶
type PlayerScreenshotData struct { Id string `json:"id"` Uuid string `json:"uuid"` Game string `json:"game"` MapId string `json:"mapId"` MapX int `json:"mapX"` MapY int `json:"mapY"` SystemName string `json:"systemName"` Timestamp time.Time `json:"timestamp"` Public bool `json:"public"` Spoiler bool `json:"spoiler"` LikeCount int `json:"likeCount"` Liked bool `json:"liked"` }
type SClientMap ¶
type SClientMap struct {
// contains filtered or unexported fields
}
func NewSCMap ¶
func NewSCMap() *SClientMap
func (*SClientMap) Delete ¶
func (m *SClientMap) Delete(uuid string)
func (*SClientMap) Exists ¶
func (m *SClientMap) Exists(uuid string) bool
func (*SClientMap) Get ¶
func (m *SClientMap) Get() []*SessionClient
func (*SClientMap) GetAmount ¶
func (m *SClientMap) GetAmount() int
func (*SClientMap) Load ¶
func (m *SClientMap) Load(uuid string) (*SessionClient, bool)
func (*SClientMap) Store ¶
func (m *SClientMap) Store(uuid string, client *SessionClient)
type ScreenshotData ¶
type ScreenshotData struct { Id string `json:"id"` Owner *ScreenshotOwner `json:"owner"` Game string `json:"game"` MapId string `json:"mapId"` MapX int `json:"mapX"` MapY int `json:"mapY"` Timestamp time.Time `json:"timestamp"` Spoiler bool `json:"spoiler"` LikeCount int `json:"likeCount"` Liked bool `json:"liked"` }
type ScreenshotOwner ¶
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient
type SimplePlayerBadge ¶
type SimplePlayerBadge struct { BadgeId string `json:"badgeId"` Game string `json:"game"` Group string `json:"group"` Bp int `json:"bp"` Hidden bool `json:"hidden"` OverlayType int `json:"overlayType"` Animated bool `json:"animated"` Unlocked bool `json:"unlocked"` NewUnlock bool `json:"newUnlock"` }
type TimeTrialRecord ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.