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

            throughput = new DynamicDouble(data.throughput);
            isTwoWay   = data.isTwoWay;
        }
        public ConnectionDataReference(string linked, string name, string description, string throughput, bool isTwoWay)
        {
            linkReference    = linked;
            this.name        = name;
            this.description = description;

            this.throughput = new DynamicDouble(throughput);
            this.isTwoWay   = isTwoWay;
        }
Пример #3
0
        public PhysicalData(PhysicalData data)
            : base(data)
        {
            volume = new DynamicDouble(data.volume);

            materials = new MaterialReference[data.materials.Length];
            for (int i = 0; i < materials.Length; i++)
            {
                materials[i] = new MaterialReference(data.materials[i]);
            }
        }
Пример #4
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);
            }
        }
Пример #5
0
 public DynamicDouble(DynamicDouble value)
     : base(value)
 {
 }