Tile bindings added to admin portal, CDN improvements
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace SOR.Database.Entities.Catalog;
|
||||
|
||||
using SOR.Database.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Maps a (Affinity × TileShape) combination to a 3D model hosted on the CDN.
|
||||
/// The client uses this to render the correct tile mesh for each affinity/shape.
|
||||
/// </summary>
|
||||
public sealed class TileModelBinding
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>Tile affinity this binding applies to.</summary>
|
||||
public Affinity Affinity { get; set; }
|
||||
|
||||
/// <summary>Tile grid shape this binding applies to (Square or Hex).</summary>
|
||||
public TileShape Shape { get; set; }
|
||||
|
||||
/// <summary>S3 object key for the 3D model, e.g. "models/tiles/forest_square.glb".</summary>
|
||||
public string ModelCdnKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Publicly accessible CDN URL for the model file.</summary>
|
||||
public string ModelPublicUrl { get; set; } = string.Empty;
|
||||
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user