stash work
This commit is contained in:
committed by
Michal Pikulski
parent
8d410b42d3
commit
5bab6d9596
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Minigames.StatueDressup.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Metadata for a single decoration placement
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class DecorationPlacement
|
||||
{
|
||||
public string decorationId; // Unique ID to load decoration
|
||||
public Vector2 localPosition; // Position relative to statue
|
||||
public Vector2 localScale; // Scale relative to statue
|
||||
public float rotation; // Z rotation in degrees
|
||||
public int sortingOrder; // Sprite sorting order
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Coordinate system type used when saving decoration positions
|
||||
/// </summary>
|
||||
public enum CoordinateSystemType
|
||||
{
|
||||
WorldSpace, // Regular Transform (world units)
|
||||
UIRectTransform // UI RectTransform (pixel coordinates)
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Collection of decoration placements for a statue
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class StatueDecorationData
|
||||
{
|
||||
public string photoId; // Associated photo ID
|
||||
public string timestamp; // When captured
|
||||
public CoordinateSystemType coordinateSystem; // Source coordinate system
|
||||
public Vector2 sourceStatueSize; // Size of statue in source units (for conversion)
|
||||
public List<DecorationPlacement> placements = new List<DecorationPlacement>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bde3a2b8ef7247d29967999bb5e9dbd8
|
||||
timeCreated: 1764163703
|
||||
Reference in New Issue
Block a user