Newer
Older
Traffic-Simulator / Assets / Scripts / Buttons / SaveStructs.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

[Serializable]
public struct SaveNode {
    public Vector3 position;
    public string type;
}

[Serializable]
public struct SaveRoad {
    public int start, end;
}

[Serializable]
public struct SaveStruct {
    public List<SaveNode> nodes;
    public List<SaveRoad> roads;
}