using UnityEngine;
public class Port
{
    Vector3 position;
    Quaternion rotation;
    Vector3 scale;
    
    public string port { private set; get; } // port name
    public string defaultId { private set; get; }
    

    public void apply(Transform target)
    {
        target.localPosition = position;
        target.localRotation = rotation;
        target.localScale = scale;
    }
    
    public Port(string name, Vector3 position, string defaultId)
    {
        port = name;
        this.position = position;
        this.rotation = Quaternion.identity;
        this.scale = new Vector3(1f,1f,1f);
        this.defaultId = defaultId;
    }
    
    public Port(string port, Vector3 position, Quaternion rotation, Vector3 scale, string defaultId)
    {
        this.port = port;
        this.position = position;
        this.rotation = rotation;
        this.scale = scale;
        this.defaultId = defaultId;
    }
    public Port(string port, Vector3 position, Quaternion rotation, string defaultId)
    {
        this.port = port;
        this.position = position;
        this.rotation = rotation;
        this.scale = new Vector3(1f,1f,1f);
        this.defaultId = defaultId;
    }
}
