26 lines
856 B
C#
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);
|
|
}
|
|
}
|
|
} |