Save and load shelves from server interior_ref_lists

During CreateInteriorRefList, save shelf positions in a separate vector and ignore their buttons. In Load, recreate the shelves and their buttons from the shelf vec.

Also start storing FormIDs in a header file so I don't have to keep passing Keywords into all the functions from Papyrus.
This commit is contained in:
2020-11-21 01:36:14 -05:00
parent 0f1b017158
commit e673ac4642
8 changed files with 285 additions and 45 deletions

3
src/utils.h Normal file
View File

@@ -0,0 +1,3 @@
#pragma once
RE::NiMatrix3 get_rotation_matrix(RE::NiPoint3 rotation);
RE::NiPoint3 rotate_point(RE::NiPoint3 point, RE::NiMatrix3 rotation_matrix);