Class AssetBan
- Namespace
- Uncreated.Warfare.Moderation.Punishments
- Assembly
- Uncreated.Warfare.dll
[JsonConverter(typeof(ModerationEntryConverter))]
public class AssetBan : DurationPunishment, IForgiveableModerationEntry, IDurationModerationEntry, IModerationEntry
- Inheritance
-
AssetBan
- Implements
-
- Inherited Members
-
Properties
IsAppealable
[JsonIgnore]
public override bool IsAppealable { get; }
Property Value
- bool
VehicleTypeFilter
[JsonPropertyName("vehicle_type_filter")]
[JsonConverter(typeof(ArrayFactoryConverter<VehicleType, JsonStringEnumConverter>))]
public VehicleType[] VehicleTypeFilter { get; set; }
Property Value
- VehicleType[]
Methods
public override Task AddExtraInfo(DatabaseInterface db, List<string> workingList, IFormatProvider formatter, CancellationToken token = default)
Parameters
db DatabaseInterface
workingList List<string>
formatter IFormatProvider
token CancellationToken
Returns
- Task
GetCommaList(bool, LanguageInfo?)
public string GetCommaList(bool roundTrip, LanguageInfo? lang = null)
Parameters
roundTrip bool
lang LanguageInfo
Returns
- string
GetDisplayName()
public override string GetDisplayName()
Returns
- string
IsAssetBanned(VehicleType, bool, bool)
public bool IsAssetBanned(VehicleType type, bool considerForgiven, bool checkStillActive = true)
Parameters
type VehicleType
considerForgiven bool
checkStillActive bool
Returns
- bool
ReadIntl(ByteReader, ushort)
protected override void ReadIntl(ByteReader reader, ushort version)
Parameters
reader ByteReader
version ushort
ReadProperty(ref Utf8JsonReader, string, JsonSerializerOptions)
public override bool ReadProperty(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options)
Parameters
reader Utf8JsonReader
propertyName string
options JsonSerializerOptions
Returns
- bool
Write(Utf8JsonWriter, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, JsonSerializerOptions options)
Parameters
writer Utf8JsonWriter
options JsonSerializerOptions
WriteIntl(ByteWriter)
protected override void WriteIntl(ByteWriter writer)
Parameters
writer ByteWriter