26 lines
553 B
C#
26 lines
553 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Simulator.Data.Transport
|
|
{
|
|
[Serializable]
|
|
public class NodeDataClass
|
|
{
|
|
public string id="";
|
|
public string type="";
|
|
public Position position=new Position();
|
|
public Properties properties=new Properties();
|
|
|
|
public Vector3 GetPosition()
|
|
{
|
|
return new Vector3(position.x,position.z, position.y);
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class Properties
|
|
{
|
|
public int capacity=0;
|
|
public string description= "";
|
|
}
|
|
} |