[tie] support per-proto visibility flags (#2212)

Jak 2 adds a feature to disable protos in TIE. It's used to hide things
like steps for a future mission in ruins, and also to hide the static
version of the tower when it switches to the merc version for the
cutscene:


![image](https://user-images.githubusercontent.com/48171810/218270077-d8c52235-ddbf-4194-80f6-b8aa1eeeb7ec.png)
This commit is contained in:
water111
2023-02-11 12:00:05 -05:00
committed by GitHub
parent 7afa583bff
commit ed38adc2a7
14 changed files with 405 additions and 73 deletions
+3
View File
@@ -209,6 +209,9 @@ void TieTree::serialize(Serializer& ser) {
packed_vertices.serialize(ser);
ser.from_pod_vector(&colors);
bvh.serialize(ser);
ser.from_ptr(&has_per_proto_visibility_toggle);
ser.from_string_vector(&proto_names);
}
void ShrubTree::serialize(Serializer& ser) {