public ConnectionDataReference(ConnectionDataReference data)
        {
            linkReference = data.linkReference;
            name          = data.name;
            description   = data.description;

            throughput = new DynamicDouble(data.throughput);
            isTwoWay   = data.isTwoWay;
        }
Exemple #2
0
        public ContainerData(ContainerData data)
            : base(data)
        {
            innerVolume = new DynamicDouble(data.innerVolume);

            connections = new ConnectionDataReference[data.connections.Length];
            for (int i = 0; i < connections.Length; i++)
            {
                connections[i] = new ConnectionDataReference(data.connections[i]);
            }

            spawnLists = new DataReference[data.spawnLists.Length];
            for (int i = 0; i < spawnLists.Length; i++)
            {
                spawnLists[i] = new DataReference(data.spawnLists[i].value);
            }
        }