add csfloat api usage
This commit is contained in:
@@ -48,6 +48,8 @@ public sealed class SkinCatalogClient
|
||||
return new CatalogSkin(
|
||||
Id: dto.Id,
|
||||
WeaponName: dto.Weapon?.Name ?? "Unknown",
|
||||
DefIndex: dto.Weapon?.WeaponId,
|
||||
PaintIndex: dto.PaintIndex,
|
||||
Category: dto.Category?.Name ?? "Unknown",
|
||||
Team: MapTeam(dto.Team?.Id),
|
||||
// Knives with no finish carry a null pattern; "Vanilla" is the community term.
|
||||
@@ -88,9 +90,11 @@ public sealed class SkinCatalogClient
|
||||
string Id,
|
||||
string? Name,
|
||||
string? Description,
|
||||
NamedDto? Weapon,
|
||||
WeaponDto? Weapon,
|
||||
NamedDto? Category,
|
||||
NamedDto? Pattern,
|
||||
// Top-level paint index. AllowReadingFromString handles its string form.
|
||||
int? PaintIndex,
|
||||
decimal? MinFloat,
|
||||
decimal? MaxFloat,
|
||||
NamedDto? Rarity,
|
||||
@@ -102,4 +106,7 @@ public sealed class SkinCatalogClient
|
||||
List<NamedDto>? Crates);
|
||||
|
||||
private sealed record NamedDto(string? Id, string? Name);
|
||||
|
||||
// Weapon carries a numeric weapon_id (the def_index) alongside id/name.
|
||||
private sealed record WeaponDto(string? Id, int? WeaponId, string? Name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user