Method Notify
- Namespace
- Pillars.Notifications.Actors
- Assembly
- Pillars.dll
Notify(IEnumerable<PiPlayer>, NOTIFICATIONICON, string, string, float)
Notifies a set of player
public Task Notify(IEnumerable<PiPlayer> targets, NOTIFICATIONICON icon, string title, string text, float duration = 5)
Parameters
targetsIEnumerable<PiPlayer>The players to notify
iconNOTIFICATIONICONtitlestringTitle of the notification (first line)
textstringText of the notification (second line)
durationfloatDuration in seconds to display the notification
Returns
Remarks
The notification duration is clamped at minimum 1 second on client
Notify(IEnumerable<PiPlayer>, int, string, string, float)
Notifies a set of player
public Task Notify(IEnumerable<PiPlayer> targets, int iconIdx, string title, string text, float duration = 5)
Parameters
targetsIEnumerable<PiPlayer>The players to notify
iconIdxintThe icon index of the clientside texture array
titlestringTitle of the notification (first line)
textstringText of the notification (second line)
durationfloatDuration in seconds to display the notification
Returns
Remarks
The notification duration is clamped at minimum 1 second on client
Notify(PiPlayer, NOTIFICATIONICON, string, string, float)
Sends a notification to a given target.
public Task Notify(PiPlayer target, NOTIFICATIONICON icon, string title, string text, float duration = 5)
Parameters
targetPiPlayerThe player to send the notification to
iconNOTIFICATIONICONtitlestringTitle of the notification (first line)
textstringText of the notification (second line)
durationfloatDuration in seconds to display the notification
Returns
Remarks
The notification duration is clamped at minimum 1 second on client
Notify(PiPlayer, int, string, string, float)
Sends a notification to a given target.
public Task Notify(PiPlayer target, int iconIdx, string title, string text, float duration = 5)
Parameters
targetPiPlayerThe player to send the notification to
iconIdxintThe icon index of the clientside texture array
titlestringTitle of the notification (first line)
textstringText of the notification (second line)
durationfloatDuration in seconds to display the notification
Returns
Remarks
The notification duration is clamped at minimum 1 second on client