초기커밋
This commit is contained in:
79
ServerCommon/MetaAssets/MetaTable/RewardPropData.cs
Normal file
79
ServerCommon/MetaAssets/MetaTable/RewardPropData.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
// <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 RewardPropMetaDataMutable
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonProperty("RewardPropBP")]
|
||||
public string RewardPropBP { get; set; }
|
||||
[JsonProperty("isQuestProp")]
|
||||
public bool IsQuestProp { get; set; }
|
||||
[JsonProperty("use_required")]
|
||||
public int UseRequired { get; set; }
|
||||
[JsonProperty("used_reward")]
|
||||
public int UsedReward { get; set; }
|
||||
[JsonProperty("respawntime")]
|
||||
public int Respawntime { get; set; }
|
||||
}
|
||||
|
||||
public partial class RewardPropMetaTableMutable
|
||||
{
|
||||
[JsonProperty("RewardPropMetaDataList")]
|
||||
public IList<RewardPropMetaDataMutable> RewardPropMetaDataList { get; set; }
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// readonly class
|
||||
//////////////////////////////
|
||||
public partial class RewardPropMetaData
|
||||
{
|
||||
public readonly int Id;
|
||||
public readonly string Name;
|
||||
public readonly string Description;
|
||||
public readonly string RewardPropBP;
|
||||
public readonly bool IsQuestProp;
|
||||
public readonly int UseRequired;
|
||||
public readonly int UsedReward;
|
||||
public readonly int Respawntime;
|
||||
public RewardPropMetaData(RewardPropMetaDataMutable data)
|
||||
{
|
||||
Id = data.Id;
|
||||
Name = data.Name;
|
||||
Description = data.Description;
|
||||
RewardPropBP = data.RewardPropBP;
|
||||
IsQuestProp = data.IsQuestProp;
|
||||
UseRequired = data.UseRequired;
|
||||
UsedReward = data.UsedReward;
|
||||
Respawntime = data.Respawntime;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class RewardPropMetaTable
|
||||
{
|
||||
public readonly IReadOnlyList<RewardPropMetaData> RewardPropMetaDataList;
|
||||
public RewardPropMetaTable(RewardPropMetaTableMutable data)
|
||||
{
|
||||
if(data.RewardPropMetaDataList != null)
|
||||
RewardPropMetaDataList = data.RewardPropMetaDataList.Select(x => new RewardPropMetaData(x)).ToList().AsReadOnly();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user