arma3types

package
v0.0.0-...-8e67534 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mission

type Mission struct {
	gorm.Model
	MissionName       string    `json:"missionName"`
	BriefingName      string    `json:"briefingName"`
	MissionNameSource string    `json:"missionNameSource"`
	OnLoadName        string    `json:"onLoadName"`
	Author            string    `json:"author"`
	ServerName        string    `json:"serverName"`
	ServerProfile     string    `json:"serverProfile"`
	MissionStart      time.Time `json:"missionStart" gorm:"index"`
	MissionHash       string    `json:"missionHash" gorm:"index"`
	WorldName         string    `json:"worldName" gorm:"-"`
	WorldID           uint
	World             World `gorm:"foreignkey:WorldID"`
	Attendees         []Session
}

func (*Mission) UnmarshalJSON

func (m *Mission) UnmarshalJSON(data []byte) error

type Session

type Session struct {
	ID                uint         `json:"id" gorm:"primaryKey"`
	PlayerUID         string       `json:"playerUID" gorm:"index;primaryKey"`
	MissionHash       string       `json:"missionHash"`
	PlayerId          string       `json:"playerId"`
	JoinTimeUTC       sql.NullTime `json:"joinTimeUTC" gorm:"index"`
	DisconnectTimeUTC sql.NullTime `json:"disconnectTimeUTC" gorm:"index"`
	ProfileName       string       `json:"profileName"`
	SteamName         string       `json:"steamName"`
	IsJIP             bool         `json:"isJIP" gorm:"column:is_jip"`
	RoleDescription   string       `json:"roleDescription"`
	MissionID         uint
	Mission           Mission `gorm:"foreignkey:MissionID"`
}

func (*Session) UnmarshalJSON

func (s *Session) UnmarshalJSON(data []byte) error

type World

type World struct {
	gorm.Model
	Author            string  `json:"author"`
	WorkshopID        string  `json:"workshopID"`
	DisplayName       string  `json:"displayName"`
	WorldName         string  `json:"worldName"`
	WorldNameOriginal string  `json:"worldNameOriginal"`
	WorldSize         float32 `json:"worldSize"`
	Latitude          float32 `json:"latitude"`
	Longitude         float32 `json:"longitude"`
	Missions          []Mission
}

Jump to

Keyboard shortcuts

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