Files
abysmal-isle/Scripts/SubSystem/VitaNex/Core/Targets/MobileSelect.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

100 lines
2.7 KiB
C#

#region Header
// _,-'/-'/
// . __,-; ,'( '/
// \. `-.__`-._`:_,-._ _ , . ``
// `:-._,------' ` _,`--` -: `_ , ` ,' :
// `---..__,,--' (C) 2023 ` -'. -'
// # Vita-Nex [http://core.vita-nex.com] #
// {o)xxx|===============- # -===============|xxx(o}
// # #
#endregion
#region References
using System;
using Server;
using Server.Targeting;
#endregion
namespace VitaNex.Targets
{
/// <summary>
/// Provides methods for selecting specific Mobiles of the given Type
/// </summary>
/// <typeparam name="TMobile">Type of the Item to be selected</typeparam>
public class MobileSelectTarget<TMobile> : GenericSelectTarget<TMobile>
where TMobile : Mobile
{
/// <summary>
/// Create an instance of MobileSelectTarget
/// </summary>
public MobileSelectTarget()
: base(null, null)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with additional options
/// </summary>
public MobileSelectTarget(int range, bool allowGround, TargetFlags flags)
: base(null, null, range, allowGround, flags)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with handlers
/// </summary>
public MobileSelectTarget(Action<Mobile, TMobile> success, Action<Mobile> fail)
: base(success, fail)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with handlers and additional options
/// </summary>
public MobileSelectTarget(
Action<Mobile, TMobile> success,
Action<Mobile> fail,
int range,
bool allowGround,
TargetFlags flags)
: base(success, fail, range, allowGround, flags)
{ }
}
/// <summary>
/// Provides methods for selecting specific Mobiles of the given Type
/// </summary>
public class MobileSelectTarget : MobileSelectTarget<Mobile>
{
/// <summary>
/// Create an instance of MobileSelectTarget
/// </summary>
public MobileSelectTarget()
: base(null, null)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with additional options
/// </summary>
public MobileSelectTarget(int range, bool allowGround, TargetFlags flags)
: base(null, null, range, allowGround, flags)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with handlers
/// </summary>
public MobileSelectTarget(Action<Mobile, Mobile> success, Action<Mobile> fail)
: base(success, fail)
{ }
/// <summary>
/// Create an instance of MobileSelectTarget with handlers and additional options
/// </summary>
public MobileSelectTarget(
Action<Mobile, Mobile> success,
Action<Mobile> fail,
int range,
bool allowGround,
TargetFlags flags)
: base(success, fail, range, allowGround, flags)
{ }
}
}