Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/UI/RouletteSpin/RoulettePiecePresenter.cs
2025-07-03 18:54:16 +09:00

26 lines
856 B
C#

using UniRx;
using UnityEngine;
namespace TON
{
public class RoulettePiecePresenter
{
public ReactiveProperty<Sprite> Icon { get; }
public ReactiveProperty<string> Description { get; }
public ReactiveProperty<int> Chance { get; }
public ReactiveProperty<int> Index { get; }
public ReactiveProperty<int> Weight { get; }
public RoulettePieceData Model { get; }
public RoulettePiecePresenter(RoulettePieceData model)
{
Model = model;
Icon = new ReactiveProperty<Sprite>(model.icon);
Description = new ReactiveProperty<string>(model.description);
Chance = new ReactiveProperty<int>(model.chance);
Index = new ReactiveProperty<int>(model.index);
Weight = new ReactiveProperty<int>(model.weight);
}
}
}