Class Channel
Channels are managed via ChannelManager. Channel has a Manager/User permission set using Aliases, that allows creating rich and contextual communication hubs in game.
Inheritance
System.Object
Channel
Implements
System.ComponentModel.INotifyPropertyChanged
ISuffixName
Assembly: Eco.Gameplay.dll
Syntax
public class Channel : SimpleEntry, ILinkableParameterized<bool>, ILinkableParameterized<SimpleEntry.NamingOptions>, ILinkable, ICachesValidity, INotifyPropertyChanged, IDescribable, ISuffixName, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, ISpecialRegistrarEntry, ICustomValidity, IValidity, IHasClientControlledContainers, IChatReceiver, IHasID, INamed, IReInitializable, IHasReferenceableSerializableID, IHasSerializableID, IRemovableEntry, IController, IViewController, IHasUniversalID
Constructors
Channel()
Declaration
Fields
OnChange
Declaration
public static ThreadSafeAction<Channel> OnChange
Field Value
Properties
CanBeDeleted
Declaration
public override bool CanBeDeleted { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
ChatRecipients
Declaration
public IEnumerable<User> ChatRecipients { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<User> |
|
ChatTag
Declaration
public string ChatTag { get; }
Property Value
Type |
Description |
System.String |
|
Managers
Declaration
[ClientCanSelectAndAdd("Select Managers", "Manager", "Managers", true)]
public ControllerAliasSet Managers { get; set; }
Property Value
MarkedUpChatTag
Declaration
public string MarkedUpChatTag { get; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
public override string Name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
SpecialType
Declaration
public int SpecialType { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Users
Declaration
[ClientCanSelectAndAdd("Select Users", "User", "Users", true)]
public ControllerAliasSet Users { get; set; }
Property Value
Methods
AccessType(User)
Declaration
public AccountAccess AccessType(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
CanAccess(User, AccountAccess)
Declaration
public Result CanAccess(User user, AccountAccess access)
Parameters
Returns
Destroyed()
Declaration
public override void Destroyed()
Overrides
GetLinkableName()
Define a string that will be parsed as a link for the Channel, so we do not overlap custom names of channels and simple words or names of other objects.
Declaration
public string GetLinkableName()
Returns
Type |
Description |
System.String |
|
Initialize()
Declaration
public override void Initialize()
Overrides
OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
Set this channel as a receiver (change output tag) with clicking on it's name in the Chat Log.
Declaration
public override void OnLinkClicked(TooltipOrigin origin, TooltipClickContext clickContext, User user)
Parameters
Overrides
Remove(User)
Declaration
public Task<bool> Remove(User caller)
Parameters
Type |
Name |
Description |
User |
caller |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Valid()
Declaration
Returns
VerifyCanRemove(Player, IClientControlledContainer, Object)
Declaration
public Task<Result> VerifyCanRemove(Player player, IClientControlledContainer container, object obj)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Result> |
|
Implements
System.ComponentModel.INotifyPropertyChanged
ISuffixName
Extension Methods