88 lines
2.8 KiB
C#
88 lines
2.8 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 EditableRoomMetaDataMutable
|
|
{
|
|
[JsonProperty("id")]
|
|
public int id { get; set; }
|
|
[JsonProperty("name")]
|
|
public string name { get; set; }
|
|
[JsonProperty("desc")]
|
|
public string desc { get; set; }
|
|
[JsonProperty("image_2D")]
|
|
public string image_2D { get; set; }
|
|
[JsonProperty("SizeType")]
|
|
public SizeType SizeType { get; set; }
|
|
[JsonProperty("RoomSize")]
|
|
public int RoomSize { get; set; }
|
|
[JsonProperty("MaxFloor")]
|
|
public int MaxFloor { get; set; }
|
|
[JsonProperty("MaxCrafterCount")]
|
|
public int MaxCrafterCount { get; set; }
|
|
[JsonProperty("LimitInteriorPoint")]
|
|
public int LimitInteriorPoint { get; set; }
|
|
[JsonProperty("BgUmap")]
|
|
public string BgUmap { get; set; }
|
|
}
|
|
|
|
public partial class EditableRoomMetaTableMutable
|
|
{
|
|
[JsonProperty("EditableRoomMetaDataList")]
|
|
public IList<EditableRoomMetaDataMutable> EditableRoomMetaDataList { get; set; }
|
|
}
|
|
|
|
//////////////////////////////
|
|
// readonly class
|
|
//////////////////////////////
|
|
public partial class EditableRoomMetaData
|
|
{
|
|
public readonly int id;
|
|
public readonly string name;
|
|
public readonly string desc;
|
|
public readonly string image_2D;
|
|
public readonly SizeType SizeType;
|
|
public readonly int RoomSize;
|
|
public readonly int MaxFloor;
|
|
public readonly int MaxCrafterCount;
|
|
public readonly int LimitInteriorPoint;
|
|
public readonly string BgUmap;
|
|
public EditableRoomMetaData(EditableRoomMetaDataMutable data)
|
|
{
|
|
id = data.id;
|
|
name = data.name;
|
|
desc = data.desc;
|
|
image_2D = data.image_2D;
|
|
SizeType = data.SizeType;
|
|
RoomSize = data.RoomSize;
|
|
MaxFloor = data.MaxFloor;
|
|
MaxCrafterCount = data.MaxCrafterCount;
|
|
LimitInteriorPoint = data.LimitInteriorPoint;
|
|
BgUmap = data.BgUmap;
|
|
}
|
|
}
|
|
|
|
public partial class EditableRoomMetaTable
|
|
{
|
|
public readonly IReadOnlyList<EditableRoomMetaData> EditableRoomMetaDataList;
|
|
public EditableRoomMetaTable(EditableRoomMetaTableMutable data)
|
|
{
|
|
if(data.EditableRoomMetaDataList != null)
|
|
EditableRoomMetaDataList = data.EditableRoomMetaDataList.Select(x => new EditableRoomMetaData(x)).ToList().AsReadOnly();
|
|
}
|
|
}
|
|
|
|
}
|