40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Simulator.Data
|
|
{
|
|
[Serializable]
|
|
public class RackDataClass : ComponentDataBase
|
|
{
|
|
public string name;
|
|
public string label;
|
|
public bool is_unlimited;
|
|
public bool fms_input_enabled;
|
|
public bool fms_output_enabled;
|
|
//public List<string> inputs=new List<string>();
|
|
//public List<string> outputs=new List<string>();
|
|
[JsonConverter(typeof(PolicyConverter))]
|
|
public Policy_Base storage_cost_policy;
|
|
[JsonConverter(typeof(PolicyConverter))]
|
|
public Policy_Base shipping_time_policy;
|
|
[JsonConverter(typeof(PolicyConverter))]
|
|
public Policy_Base receiving_time_policy;
|
|
|
|
public rack_layout rack_layout=new rack_layout();
|
|
public int entity_count_per_block;
|
|
public string connected_input_node;
|
|
}
|
|
|
|
[Serializable]
|
|
public class rack_layout
|
|
{
|
|
public int x;
|
|
public int y;
|
|
public int z;
|
|
public float x_length;
|
|
public float y_length;
|
|
public float z_length;
|
|
}
|
|
} |