• Guides
  • Api Documentation
Show / Hide Table of Contents
  • Discord.Addons.MpGame
    • CurrentlyPlaying
    • GameBase<TPlayer>
    • IMpGameData
    • MpGameModuleBase<TService, TGame, TPlayer>
    • MpGameService<TGame, TPlayer>
    • MpGameService<TGame, TPlayer>.MpGameData
    • Player
  • Discord.Addons.MpGame.Collections
    • CircularLinkedList<T>
    • Hand<T>
    • IWrapper<T>
    • Node<T>
    • Pile<T>
    • WrappingPile<T, TWrapper>
  • Discord.Addons.Preconditions
    • Measure
    • MinimumOnlineUsersAttribute
    • RatelimitAttribute
    • RatelimitFlags
    • RequireLowerHierarchyAttribute
    • RequireRoleAttribute
    • UserMustBeInVoiceAttribute

Interface IWrapper<T>

Represents the contract for a wrapper.

Namespace: Discord.Addons.MpGame.Collections
Assembly: Discord.Addons.MpGame.dll
Syntax
public interface IWrapper<out T>
Type Parameters
Name Description
T

Methods

| Improve this Doc View Source

Unwrap(Boolean)

Unwraps the wrapped item.
May do domain-specific checks or operations.

Declaration
T Unwrap(bool revealing)
Parameters
Type Name Description
Boolean revealing

Indicates if the actual item is required to be returned.

Returns
Type Description
T

The unwrapped item, or a domain-specific placeholder item.

Remarks
implement

If revealing is true, any domain-specific checks are required to be skipped and the actual wrapped item must be returned.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX