65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
// <auto-generated>
|
|
// generated using ContentTool. DO NOT EDIT!
|
|
// </auto-generated>
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Collections.ObjectModel;
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace MetaAssets
|
|
{
|
|
#pragma warning disable
|
|
|
|
public partial class GachaMetaDataMutable
|
|
{
|
|
[JsonProperty("Id")]
|
|
public int Id { get; set; }
|
|
[JsonProperty("GroupId")]
|
|
public int GroupId { get; set; }
|
|
[JsonProperty("Reward")]
|
|
public RewardMutable Reward { get; set; }
|
|
[JsonProperty("Weight")]
|
|
public int Weight { get; set; }
|
|
}
|
|
|
|
public partial class GachaMetaTableMutable
|
|
{
|
|
[JsonProperty("GachaMetaDataList")]
|
|
public IList<GachaMetaDataMutable> GachaMetaDataList { get; set; }
|
|
}
|
|
|
|
//////////////////////////////
|
|
// readonly class
|
|
//////////////////////////////
|
|
public partial class GachaMetaData
|
|
{
|
|
public readonly int Id;
|
|
public readonly int GroupId;
|
|
public readonly Reward Reward;
|
|
public readonly int Weight;
|
|
public GachaMetaData(GachaMetaDataMutable data)
|
|
{
|
|
Id = data.Id;
|
|
GroupId = data.GroupId;
|
|
if(data.Reward != null)
|
|
Reward = new Reward(data.Reward);
|
|
Weight = data.Weight;
|
|
}
|
|
}
|
|
|
|
public partial class GachaMetaTable
|
|
{
|
|
public readonly IReadOnlyList<GachaMetaData> GachaMetaDataList;
|
|
public GachaMetaTable(GachaMetaTableMutable data)
|
|
{
|
|
if(data.GachaMetaDataList != null)
|
|
GachaMetaDataList = data.GachaMetaDataList.Select(x => new GachaMetaData(x)).ToList().AsReadOnly();
|
|
}
|
|
}
|
|
|
|
}
|