Zum Inhalt

notification_legacy_util

Quelle: base/tealdef/game_mechanics/notifications/notification_legacy_util.d.tl

Hinweise

Anfangszustand des Benachrichtigungs-Game-Scripts und Migration dieses Zustands aus alten Spielständen.

NotificationLegacyUtil

record global base/tealdef/game_mechanics/notifications/notification_legacy_util.d.tl:3

global record NotificationLegacyUtil

Laden: local notification_legacy_util = ug_require "::/game_mechanics/notifications/notification_legacy_util.tl" as NotificationLegacyUtil

Hinweise

Anfangszustand von NotificationsState und Migration aus alten Spielständen.

Felder

Name Typ Beschreibung
CurrentVersion integer Aktuelle Version des Zustandsaufbaus (24 in dieser Spielversion). 1-mal im Basisspiel verwendet

Funktionen

makeInitialState() : NotificationsState base/tealdef/game_mechanics/notifications/notification_legacy_util.d.tl:5

Aufruf: notification_legacy_util.makeInitialState(…)

Hinweise

Erzeugt einen leeren Benachrichtigungszustand.

Rückgabe NotificationsState: Zustand ohne Benachrichtigungen, mit ignored.types aus NotificationUtil.getInitiallyIgnoredTypes(), ignored.fully = false und version = CurrentVersion.

Im Basisspiel verwendet: 6-mal in 1 Datei

base/content/game_mechanics/game_mechanics/notifications/notifications.script.tl:53

notificationsState = notification_legacy_util.makeInitialState()

updateLegacyState(notificationsState : NotificationsState) base/tealdef/game_mechanics/notifications/notification_legacy_util.d.tl:6

Aufruf: notification_legacy_util.updateLegacyState(…)

Hinweise

Migriert einen Zustand aus einem älteren Spielstand direkt auf CurrentVersion. Zustände vor Version 9 werden durch einen leeren Zustand ersetzt.

Parameter Typ Beschreibung
notificationsState NotificationsState Zustand, der migriert wird.
Im Basisspiel verwendet: 1-mal in 1 Datei

base/content/game_mechanics/game_mechanics/notifications/notifications.script.tl:713

notification_legacy_util.updateLegacyState(notificationsState)