60 lines
2.5 KiB
Go
60 lines
2.5 KiB
Go
package modules
|
|
|
|
type DiceStats struct {
|
|
PlayerRollData DiceStatsRollData `json:"player_roll_data"`
|
|
}
|
|
|
|
type DiceStatsRollData struct {
|
|
PlayerDice []DicePlayerDice `json:"PLAYER_DICE"`
|
|
Username string `json:"USERNAME"`
|
|
Userid string `json:"USERID"`
|
|
Gm bool `json:"GM"`
|
|
PlayerRollInfo DiceRollInfo `json:"PLAYER_ROLL_INFO"`
|
|
}
|
|
|
|
type DicePlayerDice struct {
|
|
Type string `json:"TYPE"`
|
|
Max int `json:"MAX"`
|
|
TotalRolls int `json:"TOTAL_ROLLS"`
|
|
Rolls []int `json:"ROLLS"`
|
|
BlindRolls []int `json:"BLIND_ROLLS"`
|
|
StreakSize int `json:"STREAK_SIZE"`
|
|
StreakInit int `json:"STREAK_INIT"`
|
|
StreakIsBlind bool `json:"STREAK_ISBLIND"`
|
|
LongestStreak int `json:"LONGEST_STREAK"`
|
|
LongestStreakInit int `json:"LONGEST_STREAK_INIT"`
|
|
Mean int `json:"MEAN"`
|
|
Median int `json:"MEDIAN"`
|
|
Mode int `json:"MODE"`
|
|
Means []int `json:"MEANS"`
|
|
Medians []int `json:"MEDIANS"`
|
|
Modes []int `json:"MODES"`
|
|
RollCounters []int `json:"ROLL_COUNTERS"`
|
|
AtkRolls []int `json:"ATK_ROLLS"`
|
|
DmgRolls []int `json:"DMG_ROLLS"`
|
|
SavesRolls []int `json:"SAVES_ROLLS"`
|
|
SkillsRolls []int `json:"SKILLS_ROLLS"`
|
|
AbilityRolls []int `json:"ABILITY_ROLLS"`
|
|
UnknownRolls []int `json:"UNKNOWN_ROLLS"`
|
|
PerceptionRolls []int `json:"PERCEPTION_ROLLS"`
|
|
InitiativeRolls []int `json:"INITIATIVE_ROLLS"`
|
|
AtkRollsBlind []int `json:"ATK_ROLLS_BLIND"`
|
|
DmgRollsBlind []int `json:"DMG_ROLLS_BLIND"`
|
|
SavesRollsBlind []int `json:"SAVES_ROLLS_BLIND"`
|
|
SkillsRollsBlind []int `json:"SKILLS_ROLLS_BLIND"`
|
|
AbilityRollsBlind []int `json:"ABILITY_ROLLS_BLIND"`
|
|
UnknownRollsBlind []int `json:"UNKNOWN_ROLLS_BLIND"`
|
|
PerceptionRollsBlind []int `json:"PERCEPTION_ROLLS_BLIND"`
|
|
InitiativeRollsBlind []int `json:"INITIATIVE_ROLLS_BLIND"`
|
|
}
|
|
|
|
type DiceRollInfo struct {
|
|
IsRollInfoTracked bool `json:"IS_ROLL_INFO_TRACKED"`
|
|
AtkOutcomeTracker []int `json:"ATK_OUTCOME_TRACKER"`
|
|
NumUntargetedAtks int `json:"NUM_UNTARGETED_ATKS"`
|
|
TotalAttacks int `json:"TOTAL_ATTACKS"`
|
|
SaveOutcomeTracker []int `json:"SAVE_OUTCOME_TRACKER"`
|
|
NumUntargetedSaves int `json:"NUM_UNTARGETED_SAVES"`
|
|
TotalSaves int `json:"TOTAL_SAVES"`
|
|
}
|