public BasicEntity(BasicEntity copyFrom) { anchor = copyFrom.anchor; position = copyFrom.position; scale = copyFrom.scale; height = copyFrom.height; yGrid = copyFrom.yGrid; flipX = copyFrom.flipX; flipZ = copyFrom.flipZ; socket = copyFrom.socket; autoFill = copyFrom.autoFill; snap = copyFrom.snap; isVirtual = copyFrom.isVirtual; targetRoom = copyFrom.targetRoom; direction = copyFrom.direction; key = copyFrom.key; baseKey = copyFrom.baseKey; lowKey = copyFrom.lowKey; name = copyFrom.name; layerName = copyFrom.layerName; variable = copyFrom.variable; if (copyFrom.properties != null) { properties = new TMProperty[copyFrom.properties.Length]; for (int i = 0; i < properties.Length; i++) { properties[i] = new TMProperty(copyFrom.properties[i].name, copyFrom.properties[i].type, copyFrom.properties[i].value); } } }
public TMProperty(TMProperty copyFrom) : this() { name = copyFrom.name; type = copyFrom.type; value = copyFrom.value; }