Show / Hide Table of Contents

Class ResultExtensions

Inheritance
System.Object
ResultExtensions
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class ResultExtensions : Object

Methods

Combine(Result, Result, LocString)

Declaration
public static Result Combine(this Result result, Result other, LocString messageDelimiter)
Parameters
Type Name Description
Result result
Result other
LocString messageDelimiter
Returns
Type Description
Result

Combine(IEnumerable<Result>, LocString)

Declaration
public static Result Combine(this IEnumerable<Result> results, LocString messageDelimiter)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Result> results
LocString messageDelimiter
Returns
Type Description
Result

Notify(LazyResult, Player)

Declaration
public static LazyResult Notify(this LazyResult result, Player player)
Parameters
Type Name Description
LazyResult result
Player player
Returns
Type Description
LazyResult

Notify(LazyResult, User, Boolean)

Declaration
public static LazyResult Notify(this LazyResult result, User user, bool forceTemporary = false)
Parameters
Type Name Description
LazyResult result
User user
System.Boolean forceTemporary
Returns
Type Description
LazyResult

Notify(Result, Player)

Declaration
public static Result Notify(this Result result, Player player)
Parameters
Type Name Description
Result result
Player player
Returns
Type Description
Result

Notify(Result, User, Boolean)

Declaration
public static Result Notify(this Result result, User user, bool forceTemporary = false)
Parameters
Type Name Description
Result result
User user
System.Boolean forceTemporary
Returns
Type Description
Result

Notify(Result, User[])

Declaration
public static Result Notify(this Result result, params User[] users)
Parameters
Type Name Description
Result result
User[] users
Returns
Type Description
Result

NotifyAll(Result, NotificationCategory)

Declaration
public static Result NotifyAll(this Result result, NotificationCategory tag)
Parameters
Type Name Description
Result result
NotificationCategory tag
Returns
Type Description
Result

NotifyIf(Result, Boolean, User[])

Declaration
public static Result NotifyIf(this Result result, bool test, params User[] users)
Parameters
Type Name Description
Result result
System.Boolean test
User[] users
Returns
Type Description
Result

NotifyIf<T>(ValResult<T>, Boolean, User[])

Declaration
public static ValResult<T> NotifyIf<T>(this ValResult<T> result, bool test, params User[] users)
Parameters
Type Name Description
ValResult<T> result
System.Boolean test
User[] users
Returns
Type Description
ValResult<T>
Type Parameters
Name Description
T

NotifyIfFailed(Result, User)

If result is failed, notifies notifyUser with failure message and with message style Error. Returns true if result failed.

Declaration
public static bool NotifyIfFailed(this Result result, User notifyUser)
Parameters
Type Name Description
Result result
User notifyUser
Returns
Type Description
System.Boolean

NotifyIfFailedLoc(Result, FormattableString, NotificationCategory)

Declaration
public static void NotifyIfFailedLoc(this Result result, FormattableString title, NotificationCategory tag)
Parameters
Type Name Description
Result result
System.FormattableString title
NotificationCategory tag

NotifyWithInfoPanel(Result, Player, String, String)

Declaration
public static bool NotifyWithInfoPanel(this Result result, Player player, string title, string category = "general")
Parameters
Type Name Description
Result result
Player player
System.String title
System.String category
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾