초기커밋
This commit is contained in:
83
ServerCommon/MetaAssets/MetaTable/UserCreateData.cs
Normal file
83
ServerCommon/MetaAssets/MetaTable/UserCreateData.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
// <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 UserCreateMetaDataMutable
|
||||
{
|
||||
[JsonProperty("meta_id")]
|
||||
public int MetaId { get; set; }
|
||||
[JsonProperty("inventory_items")]
|
||||
public string InventoryItems { get; set; }
|
||||
[JsonProperty("wearing_items")]
|
||||
public string WearingItems { get; set; }
|
||||
[JsonProperty("tool_presets")]
|
||||
public string ToolPresets { get; set; }
|
||||
[JsonProperty("currency_gold")]
|
||||
public double CurrencyGold { get; set; }
|
||||
[JsonProperty("currency_sapphire")]
|
||||
public double currency_sapphire { get; set; }
|
||||
[JsonProperty("currency_calium")]
|
||||
public double currency_calium { get; set; }
|
||||
[JsonProperty("currency_ruby")]
|
||||
public double currency_ruby { get; set; }
|
||||
}
|
||||
|
||||
public partial class UserCreateMetaTableMutable
|
||||
{
|
||||
[JsonProperty("UserCreateMetaDataList")]
|
||||
public IList<UserCreateMetaDataMutable> UserCreateMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class UserCreateMetaData : IMetaData
|
||||
{
|
||||
public string toBasicString()
|
||||
{
|
||||
return $"{this.GetType().Name}";
|
||||
}
|
||||
public readonly int MetaId;
|
||||
public readonly string InventoryItems;
|
||||
public readonly string WearingItems;
|
||||
public readonly string ToolPresets;
|
||||
public readonly double CurrencyGold;
|
||||
public readonly double currency_sapphire;
|
||||
public readonly double currency_calium;
|
||||
public readonly double currency_ruby;
|
||||
public UserCreateMetaData(UserCreateMetaDataMutable data)
|
||||
{
|
||||
MetaId = data.MetaId;
|
||||
InventoryItems = data.InventoryItems;
|
||||
WearingItems = data.WearingItems;
|
||||
ToolPresets = data.ToolPresets;
|
||||
CurrencyGold = data.CurrencyGold;
|
||||
currency_sapphire = data.currency_sapphire;
|
||||
currency_calium = data.currency_calium;
|
||||
currency_ruby = data.currency_ruby;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class UserCreateMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<UserCreateMetaData> UserCreateMetaDataList;
|
||||
public UserCreateMetaTable(UserCreateMetaTableMutable data)
|
||||
{
|
||||
if(data.UserCreateMetaDataList != null)
|
||||
UserCreateMetaDataList = data.UserCreateMetaDataList.Select(x => new UserCreateMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user