CBT API 14 compatibility: Dalamud SDK 14, net10, fix ISigScanner and LocalPlayer
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Release Build and Publish / Release Build against Staging Dalamud and deploy to MyDalamudPlugins (release) Has been cancelled
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Release Build and Publish / Release Build against Staging Dalamud and deploy to MyDalamudPlugins (release) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace CBT.Attributes;
|
||||
|
||||
using System;
|
||||
using CBT.Types;
|
||||
|
||||
/// <summary>
|
||||
/// FlyTextCategoryAttribute decorates a <see cref="FlyTextKind"/> with a Category.
|
||||
/// </summary>
|
||||
/// <param name="category">FlyTextCategory which is a collection of kinds.</param>
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
|
||||
public class FlyTextCategoryAttribute(FlyTextCategory category) : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the FlyTextCategory.
|
||||
/// </summary>
|
||||
public FlyTextCategory Category { get; } = category;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
namespace CBT.Attributes;
|
||||
|
||||
using System;
|
||||
using CBT.Types;
|
||||
|
||||
/// <summary>
|
||||
/// FlyTextFilter denotes if this text should always be filtered for a certain entity.
|
||||
/// </summary>
|
||||
public enum FlyTextFilter
|
||||
{
|
||||
/// <summary>
|
||||
/// No-op.
|
||||
/// </summary>
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// If the element should filter for self. This is probably unused.
|
||||
/// </summary>
|
||||
Self,
|
||||
|
||||
/// <summary>
|
||||
/// If the element should filter for party members.
|
||||
/// </summary>
|
||||
Party,
|
||||
|
||||
/// <summary>
|
||||
/// If the element should filter for party enemies.
|
||||
/// </summary>
|
||||
Enemy,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FlyTextFilterAttribute decorates a <see cref="FlyTextKind"/> with a Filter.
|
||||
/// </summary>
|
||||
/// <param name="filter">The kind of filter.</param>
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
|
||||
public class FlyTextFilterAttribute(FlyTextFilter[] filter) : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the FlyTextFilter.
|
||||
/// </summary>
|
||||
public FlyTextFilter[] Filter { get; } = filter;
|
||||
}
|
||||
Reference in New Issue
Block a user