上海虹口龙之梦项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

117 lines
3.5 KiB

using UnityEngine;
using UniRx;
/// <summary>
// 该文件根据 SiameseConnections.xlsx 由程序自动生成
/// </summary>
public class SiameseConnections : CloneObject
{
///// <summary>
///// ID
///// </summary>
//public string Id { get; set; }
///// <summary>
///// 父对象
///// </summary>
//public string Parent { get; set; }
///// <summary>
///// 图片地址
///// </summary>
//public string ImageURL { get; set; }
///// <summary>
///// 图片类型
///// </summary>
//public UpLoadImageType ImageType { get; set; }
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 编号
/// </summary>
public string Number { get; set; }
/// <summary>
/// 范围
/// </summary>
public string Range { get; set; }
/// <summary>
/// 位置
/// </summary>
public string Location { get; set; }
}
public class SiameseConnectionsReactive : CloneObjectReactive, ISetData<SiameseConnections>
{
//protected override SiameseConnections Data { get; set; }
///// <summary>
///// ID
///// </summary>
//public ReactiveProperty<string> Id { get; set; }
///// <summary>
///// 父对象
///// </summary>
//public ReactiveProperty<string> Parent { get; set; }
///// <summary>
///// 图片地址
///// </summary>
//public ReactiveProperty<string> ImageURL { get; set; }
///// <summary>
///// 图片类型
///// </summary>
//public ReactiveProperty<UpLoadImageType> ImageType { get; set; }
/// <summary>
/// 类型
/// </summary>
public ReactiveProperty<string> Type { get; set; }
/// <summary>
/// 编号
/// </summary>
public ReactiveProperty<string> Number { get; set; }
/// <summary>
/// 范围
/// </summary>
public ReactiveProperty<string> Range { get; set; }
/// <summary>
/// 位置
/// </summary>
public ReactiveProperty<string> Location { get; set; }
public SiameseConnectionsReactive()
: base()
{
Data = new SiameseConnections();
//Id = new ReactiveProperty<string>();
//Id.Subscribe(value => Data.Id = value);
//Parent = new ReactiveProperty<string>();
//Parent.Subscribe(value => Data.Parent = value);
//ImageURL = new ReactiveProperty<string>();
//ImageURL.Subscribe(value => Data.ImageURL = value);
//ImageType = new ReactiveProperty<UpLoadImageType>();
//ImageType.Subscribe(value => Data.ImageType = value);
Type = new ReactiveProperty<string>();
Type.Subscribe(value => ((SiameseConnections)Data).Type = value);
Number = new ReactiveProperty<string>();
Number.Subscribe(value => ((SiameseConnections)Data).Number = value);
Range = new ReactiveProperty<string>();
Range.Subscribe(value => ((SiameseConnections)Data).Range = value);
Location = new ReactiveProperty<string>();
Location.Subscribe(value => ((SiameseConnections)Data).Location = value);
}
public void SetData(SiameseConnections data)
{
base.SetData(data);
Id.Value = data.Id;
Parent.Value = data.Parent;
ImageUrl.Value = data.ImageUrl;
ImageType.Value = data.ImageType;
Type.Value = data.Type;
Number.Value = data.Number;
Range.Value = data.Range;
Location.Value = data.Location;
}
//public SiameseConnections GetData()
//{
// return Data;
//}
}