public PROPS_TABLE_STRUCTURE(PROPS_TABLE_STRUCTURE tmp) { _segment_number = tmp._segment_number; _prop_index = tmp._prop_index; _x = tmp._x; _y = tmp._y; _z = tmp._z; _rotate_x = tmp._rotate_x; _rotate_y = tmp._rotate_y; _rotate_z = tmp._rotate_z; _scale_x = tmp._scale_x; _scale_y = tmp._scale_y; _scale_z = tmp._scale_z; _prop_num = tmp._prop_num; _height_locked = tmp._height_locked; _lock_height = tmp._lock_height; _texture_group_index = tmp._texture_group_index; }
public void addProp(PROPS_TABLE_STRUCTURE tmp) { tmp._prop_index = getMaxPropIndex(); if (this.propsegments[tmp._segment_number]._prop_count > 0) { this.propsegments[tmp._segment_number]._prop_count++; PROPS_TABLE_STRUCTURE[] proptmp = new PROPS_TABLE_STRUCTURE[this.propsegments[tmp._segment_number]._prop_count]; for (int i = 0; i < this.propsegments[tmp._segment_number]._prop_count - 1; i++) { proptmp[i] = new PROPS_TABLE_STRUCTURE(this.propsegments[tmp._segment_number].props[i]); } proptmp[proptmp.Length - 1] = tmp; this.propsegments[tmp._segment_number].props = proptmp; } else { this.propsegments[tmp._segment_number]._prop_count++; this.propsegments[tmp._segment_number].props = new PROPS_TABLE_STRUCTURE[1]; this.propsegments[tmp._segment_number].props[0] = new PROPS_TABLE_STRUCTURE(tmp); } }