Documentation ¶
Index ¶
- type Entry
- func (e *Entry) ChatSession() player.ChatSession
- func (e *Entry) DisplayName() component.Component
- func (e *Entry) GameMode() int
- func (e *Entry) Latency() time.Duration
- func (e *Entry) Listed() bool
- func (e *Entry) Profile() profile.GameProfile
- func (e *Entry) SetChatSessionInternal(chatSession player.ChatSession)
- func (e *Entry) SetDisplayName(name component.Component) error
- func (e *Entry) SetDisplayNameInternal(name component.Component)
- func (e *Entry) SetGameMode(gameMode int) error
- func (e *Entry) SetGameModeInternal(gameMode int)
- func (e *Entry) SetLatency(latency time.Duration) error
- func (e *Entry) SetLatencyInternal(latency time.Duration)
- func (e *Entry) SetListed(listed bool) error
- func (e *Entry) SetListedInternal(listed bool)
- func (e *Entry) TabList() tablist.TabList
- type EntryAttributes
- type InternalTabList
- type KeyedEntry
- type KeyedTabList
- func (k *KeyedTabList) Add(entries ...tablist.Entry) error
- func (k *KeyedTabList) EmitActionRaw(action playerinfo.UpsertAction, entry *playerinfo.Entry) error
- func (k *KeyedTabList) Parent() InternalTabList
- func (k *KeyedTabList) ProcessLegacy(p *legacytablist.PlayerListItem) error
- func (k *KeyedTabList) ProcessRemove(info *playerinfo.Remove)
- func (k *KeyedTabList) ProcessUpdate(info *playerinfo.Upsert) error
- func (k *KeyedTabList) RemoveAll(ids ...uuid.UUID) error
- func (k *KeyedTabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
- type LegacyEntry
- type LegacyTabList
- func (l *LegacyTabList) Add(entries ...tablist.Entry) error
- func (l *LegacyTabList) Parent() InternalTabList
- func (l *LegacyTabList) ProcessLegacy(p *legacytablist.PlayerListItem) error
- func (l *LegacyTabList) RemoveAll(ids ...uuid.UUID) error
- func (l *LegacyTabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
- type TabList
- func (t *TabList) Add(entries ...tablist.Entry) error
- func (t *TabList) DeleteEntries(ids ...uuid.UUID) []uuid.UUID
- func (t *TabList) EmitActionRaw(action playerinfo.UpsertAction, entry *playerinfo.Entry) error
- func (t *TabList) Entries() map[uuid.UUID]tablist.Entry
- func (t *TabList) GetViewer() tablist.Viewer
- func (t *TabList) HeaderFooter() (header, footer component.Component)
- func (t *TabList) Parent() InternalTabList
- func (t *TabList) ProcessLegacy(legacy *legacytablist.PlayerListItem) error
- func (t *TabList) ProcessRemove(info *playerinfo.Remove)
- func (t *TabList) ProcessUpdate(info *playerinfo.Upsert) error
- func (t *TabList) RemoveAll(ids ...uuid.UUID) error
- func (t *TabList) SetHeaderFooter(header, footer component.Component) error
- func (t *TabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
- type Viewer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { OwningTabList InternalTabList sync.RWMutex EntryAttributes }
func (*Entry) ChatSession ¶
func (e *Entry) ChatSession() player.ChatSession
func (*Entry) DisplayName ¶
func (*Entry) Profile ¶
func (e *Entry) Profile() profile.GameProfile
func (*Entry) SetChatSessionInternal ¶
func (e *Entry) SetChatSessionInternal(chatSession player.ChatSession)
func (*Entry) SetDisplayNameInternal ¶
func (*Entry) SetGameMode ¶
func (*Entry) SetGameModeInternal ¶
func (*Entry) SetLatencyInternal ¶
func (*Entry) SetListedInternal ¶
type EntryAttributes ¶
type EntryAttributes struct { Profile profile.GameProfile DisplayName component.Component // nil-able Latency time.Duration GameMode int Listed bool ChatSession player.ChatSession }
type InternalTabList ¶
type InternalTabList interface { tablist.TabList GetViewer() tablist.Viewer ProcessRemove(info *playerinfo.Remove) ProcessUpdate(info *playerinfo.Upsert) error ProcessLegacy(legacy *legacytablist.PlayerListItem) error EmitActionRaw(action playerinfo.UpsertAction, entry *playerinfo.Entry) error UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error // DeleteEntries deletes the entries with the given ids without sending a packet. DeleteEntries(ids ...uuid.UUID) []uuid.UUID Parent() InternalTabList // Used to resolve the parent root struct of an embedded tab list struct }
func ResolveRoot ¶
func ResolveRoot(i InternalTabList) InternalTabList
ResolveRoot returns the root structure of the tab list.
type KeyedEntry ¶
type KeyedEntry struct {
Entry
}
func (*KeyedEntry) SetDisplayName ¶
func (k *KeyedEntry) SetDisplayName(name component.Component) error
func (*KeyedEntry) SetGameMode ¶
func (k *KeyedEntry) SetGameMode(gameMode int) error
func (*KeyedEntry) SetLatency ¶
func (k *KeyedEntry) SetLatency(latency time.Duration) error
func (*KeyedEntry) SetListed ¶
func (k *KeyedEntry) SetListed(bool) error
type KeyedTabList ¶
type KeyedTabList struct {
TabList
}
func (*KeyedTabList) EmitActionRaw ¶
func (k *KeyedTabList) EmitActionRaw(action playerinfo.UpsertAction, entry *playerinfo.Entry) error
func (*KeyedTabList) Parent ¶ added in v0.25.2
func (k *KeyedTabList) Parent() InternalTabList
func (*KeyedTabList) ProcessLegacy ¶
func (k *KeyedTabList) ProcessLegacy(p *legacytablist.PlayerListItem) error
func (*KeyedTabList) ProcessRemove ¶
func (k *KeyedTabList) ProcessRemove(info *playerinfo.Remove)
func (*KeyedTabList) ProcessUpdate ¶
func (k *KeyedTabList) ProcessUpdate(info *playerinfo.Upsert) error
func (*KeyedTabList) UpdateEntry ¶
func (k *KeyedTabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
type LegacyEntry ¶
type LegacyEntry struct {
KeyedEntry
}
func (*LegacyEntry) SetDisplayName ¶
func (e *LegacyEntry) SetDisplayName(name component.Component) error
type LegacyTabList ¶
func (*LegacyTabList) Parent ¶ added in v0.25.2
func (l *LegacyTabList) Parent() InternalTabList
func (*LegacyTabList) ProcessLegacy ¶
func (l *LegacyTabList) ProcessLegacy(p *legacytablist.PlayerListItem) error
func (*LegacyTabList) UpdateEntry ¶
func (l *LegacyTabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
type TabList ¶
type TabList struct { ParentStruct InternalTabList Viewer Viewer sync.RWMutex EntriesByID map[uuid.UUID]tablist.Entry // contains filtered or unexported fields }
func (*TabList) DeleteEntries ¶ added in v0.35.0
func (*TabList) EmitActionRaw ¶
func (t *TabList) EmitActionRaw(action playerinfo.UpsertAction, entry *playerinfo.Entry) error
func (*TabList) HeaderFooter ¶ added in v0.35.0
func (*TabList) Parent ¶
func (t *TabList) Parent() InternalTabList
func (*TabList) ProcessLegacy ¶
func (t *TabList) ProcessLegacy(legacy *legacytablist.PlayerListItem) error
func (*TabList) ProcessRemove ¶
func (t *TabList) ProcessRemove(info *playerinfo.Remove)
func (*TabList) ProcessUpdate ¶
func (t *TabList) ProcessUpdate(info *playerinfo.Upsert) error
func (*TabList) SetHeaderFooter ¶ added in v0.35.0
func (*TabList) UpdateEntry ¶
func (t *TabList) UpdateEntry(action legacytablist.PlayerListItemAction, entry tablist.Entry) error
Click to show internal directories.
Click to hide internal directories.