초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,125 @@
// <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 ProductDataMutable
{
[JsonProperty("Currency")]
public CurrencyRewardMutable Currency { get; set; }
[JsonProperty("Item")]
public ItemRewardMutable Item { get; set; }
}
public partial class ShopProductMetaDataMutable
{
[JsonProperty("ID")]
public int ID { get; set; }
[JsonProperty("Name")]
public string Name { get; set; }
[JsonProperty("Description")]
public string Description { get; set; }
[JsonProperty("Group_Id")]
public int Group_Id { get; set; }
[JsonProperty("Is_Random")]
public bool Is_Random { get; set; }
[JsonProperty("Weight")]
public int Weight { get; set; }
[JsonProperty("ProductData")]
public ProductDataMutable ProductData { get; set; }
[JsonProperty("ProductType_BuyCount")]
public int ProductType_BuyCount { get; set; }
[JsonProperty("Buy_Price_Type")]
public ShopBuyType Buy_Price_Type { get; set; }
[JsonProperty("Buy_Id")]
public int Buy_Id { get; set; }
[JsonProperty("Buy_Price")]
public double Buy_Price { get; set; }
[JsonProperty("Attribute_Key")]
public string Attribute_Key { get; set; }
[JsonProperty("Attribute_Value")]
public int Attribute_Value { get; set; }
[JsonProperty("Gender")]
public EGenderType Gender { get; set; }
}
public partial class ShopProductMetaTableMutable
{
[JsonProperty("ShopProductMetaDataList")]
public IList<ShopProductMetaDataMutable> ShopProductMetaDataList { get; set; }
}
//////////////////////////////
// readonly class
//////////////////////////////
public partial class ProductData
{
public readonly CurrencyReward Currency;
public readonly ItemReward Item;
public ProductData(ProductDataMutable data)
{
if(data.Currency != null)
Currency = new CurrencyReward(data.Currency);
if(data.Item != null)
Item = new ItemReward(data.Item);
}
}
public partial class ShopProductMetaData
{
public readonly int ID;
public readonly string Name;
public readonly string Description;
public readonly int Group_Id;
public readonly bool Is_Random;
public readonly int Weight;
public readonly ProductData ProductData;
public readonly int ProductType_BuyCount;
public readonly ShopBuyType Buy_Price_Type;
public readonly int Buy_Id;
public readonly double Buy_Price;
public readonly string Attribute_Key;
public readonly int Attribute_Value;
public readonly EGenderType Gender;
public ShopProductMetaData(ShopProductMetaDataMutable data)
{
ID = data.ID;
Name = data.Name;
Description = data.Description;
Group_Id = data.Group_Id;
Is_Random = data.Is_Random;
Weight = data.Weight;
if(data.ProductData != null)
ProductData = new ProductData(data.ProductData);
ProductType_BuyCount = data.ProductType_BuyCount;
Buy_Price_Type = data.Buy_Price_Type;
Buy_Id = data.Buy_Id;
Buy_Price = data.Buy_Price;
Attribute_Key = data.Attribute_Key;
Attribute_Value = data.Attribute_Value;
Gender = data.Gender;
}
}
public partial class ShopProductMetaTable
{
public readonly IReadOnlyList<ShopProductMetaData> ShopProductMetaDataList;
public ShopProductMetaTable(ShopProductMetaTableMutable data)
{
if(data.ShopProductMetaDataList != null)
ShopProductMetaDataList = data.ShopProductMetaDataList.Select(x => new ShopProductMetaData(x)).ToList().AsReadOnly();
}
}
}