/// <summary> /// Returns a new <see cref="IChatFormat"/> model for supplied <see cref="ChatFormatType"/> type. /// </summary> public IChatFormat GetChatFormatModel(ChatFormatType type) { if (!chatFormatFactories.TryGetValue(type, out ChatFormatFactoryDelegate factory)) { return(null); } return(factory.Invoke()); }
public ChatFormatAttribute(ChatFormatType type) { Type = type; }