Documentation ¶
Index ¶
Constants ¶
View Source
const ( Nothing int64 = iota //env Crush //(required to be 1 for engine reasons) Fall Water //just fire Water_stun //splash Water_stun_force //splash Drown Fire //initial burst (should ignite things) Burn //burn damage Flying //common actor Stomp Suicide //(required to be 11 for engine reasons) //natural Bite //builders Builder //knight Sword Shield Bomb //archer Stab //arrows and similar projectiles Arrow Bomb_arrow Ballista //cata Cata_stones Cata_boulder Boulder //siege Ram // explosion Explosion Keg Mine Mine_special //traps Spikes //machinery Saw Drill //barbarian Muscles // scrolls Suddengib )
Variables ¶
View Source
var HitterNames = []string{
"Died",
"Crushing",
"Fall",
"Water",
"Water Stun",
"Water Stun Force",
"Drowning",
"Fire",
"Burn",
"Flying",
"Stomp",
"Suicide",
"Bite",
"Pickaxe",
"Sword",
"Shield",
"Bomb",
"Stab",
"Arrow",
"Bomb Arrow",
"Ballista Bolt",
"Catapult Stones",
"Catapult Boulder",
"Boulder",
"Ram",
"Explosion",
"Keg",
"Mine",
"Mine Special",
"Spikes",
"Saw",
"Drill",
"Muscles",
"Sudden Gib",
}
Functions ¶
func HitterName ¶
Types ¶
type ClanInfo ¶
type ClanInfo struct { ID int64 `json:"id" db:"ID"` Name string `json:"name" db:"name"` LowerName string `json:"-" db:"lowerName"` CreatedAt int64 `json:"createdAt" db:"createdAt"` LeaderID int64 `json:"leaderID" db:"leaderID"` Banned bool `json:"-" db:"banned"` MembersCount int64 `json:"membersCount" db:"membersCount"` Player `json:"leader" db:"leader,prefix=leader."` }
type ClanInvite ¶
type ClanInvite struct { ClanID int64 `json:"clanID" db:"clanID"` PlayerID string `json:"playerID" db:"playerID"` SentAt int64 `json:"sentAt" db:"sentAt"` ClanInfo `json:"clan" db:"clan,prefix=clan."` Player `json:"player" db:"player,prefix=player."` Leader `json:"leader" db:"leader,prefix=leader."` }
type FlagCapture ¶
type Kill ¶
type Kill struct { ID int64 `json:"id" db:"ID"` KillerID int64 `json:"-" db:"killerID"` VictimID int64 `json:"-" db:"victimID"` KillerClass string `json:"killerClass" db:"killerClass"` VictimClass string `json:"victimClass" db:"victimClass"` Hitter int64 `json:"hitter" db:"hitter"` Time int64 `json:"time" db:"epoch"` ServerID int64 `json:"serverId" db:"serverID"` TeamKill bool `json:"teamKill" db:"teamKill"` Player `json:"victim" db:"victim,prefix=victim."` Killer `json:"killer" db:"killer,prefix=killer."` Server `json:"server" db:"server,prefix=server."` }
type MapVotes ¶
type MapVotes struct { ID int64 `json:"id" db:"ID"` Map1Name string `json:"map1Name" db:"map1Name"` Map1Votes int64 `json:"map1Votes" db:"map1Votes"` Map2Name string `json:"map2Name" db:"map2Name"` Map2Votes int64 `json:"map2Votes" db:"map2Votes"` RandomVotes int64 `json:"randomVotes" db:"randomVotes"` }
type Player ¶
type Player struct { ID int64 `json:"id" db:"ID"` Username string `json:"username"` Charactername string `json:"charactername"` Clantag string `json:"clantag"` IP string `json:"-" db:"lastIP"` ServerID int64 // used for tracking in the collector ClanID *int64 `json:"clanID" db:"clanID"` ClanInfo struct { ClanName *string `json:"name" db:"name"` } `json:"clanInfo" db:"clan_info,prefix=clan_info."` ClanName *string `json:"clanInfo.name" db:"clan_info.name"` JoinedClan int64 `json:"joinedClan" db:"joinedClan"` //Information cached from api.kag2d.com OldGold bool `json:"oldGold"` Registered string `json:"registered"` Role int64 `json:"role"` Avatar string `json:"avatar"` Tier int64 `json:"tier"` //Accolades Gold int `json:"gold"` Silver int `json:"silver"` Bronze int `json:"bronze"` Participation int `json:"participation"` Github bool `json:"github"` Community bool `json:"community"` MapMaker bool `json:"mapmaker"` Moderation bool `json:"moderation"` //Moderation LeaderboardBan bool `json:"leaderboardBan" db:"leaderboardBan"` MonthlyLeaderboardBan bool `json:"monthlyLeaderboardBan" db:"monthlyLeaderboardBan"` StatsBan bool `json:"statsBan" db:"statsBan"` Notes string `json:"-" db:"notes"` BannedFromMakingClans bool `json:"-" db:"bannedFromMakingClans"` }
type Poll ¶
type Poll struct { ID int64 `json:"id" db:"ID"` Name string `json:"name"` Description string `json:"description"` Questions []PollQuestion `json:"questions"` Responses int `json:"responses,omitempty"` StartAt int64 `json:"startAt,omitempty" db:"startAt"` EndAt int64 `json:"endAt,omitempty" db:"endAt"` }
type PollAnswer ¶
type PollQuestion ¶
type ScriptPlayer ¶
Click to show internal directories.
Click to hide internal directories.