Esempio n. 1
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);
            }
        }
 public MaterialReference(MaterialReference mat)
 {
     material = new DataReference(mat.material.value);
     parts    = mat.parts;
 }
Esempio n. 3
0
 public VerbReference(VerbReference value)
 {
     verb       = new DataReference(value.verb.value);
     possession = value.possession;
 }
Esempio n. 4
0
 public BehaviourReference(BehaviourReference value)
 {
     behaviour = new DataReference(value.behaviour.value);
 }
Esempio n. 5
0
 public LocatorDataReference(LocatorDataReference data)
 {
     this.data     = data.data == null ? null : new DataReference(data.data.value);
     this.location = data.location == null ? null : new SearchParams(data.location);
 }
Esempio n. 6
0
 public LocatorDataReference(string data, SearchParams location)
 {
     this.data     = new DataReference(data);
     this.location = location;
 }
Esempio n. 7
0
 public DataReference(DataReference data)
 {
     value = data.value;
 }