Commit Graph

31099 Commits (1b718f09c51bc6b295b3650166b2968b993ccf69)
 

Author SHA1 Message Date
florent.teppe 1b718f09c5 adding worldspace info to terrain data structures
Rendering manager can have multiple terrain, one for each queried worldspace
Terrain::World has a worldspace member
storage functions require a worldspace parameter.
2 years ago
florent.teppe 93e7b0d946 Terrain has a mandatory worldspace in constructor
getTerrainHeightAt takes a worldspace.

Doesn't change anything for now => Therrain is created with the default ESM3 worldspace, and is never changed.
2 years ago
psi29a 4399748889 Merge branch 'clickbait' into 'master'
Move more arrays to the ESM::Attribute struct

See merge request OpenMW/openmw!3074
2 years ago
Petr Mikheev 1563c5c84e Merge branch 'simple_world_model_get_all' into 'master'
Simplify WorldModel::getAll

See merge request OpenMW/openmw!3077
2 years ago
elsid 02adb91859
Simplify WorldModel::getAll
There is no need to have generic forEach template function.
2 years ago
psi29a c368c188f2 Merge branch 'fix_position_cell_crash' into 'master'
Use sDefaultWorldspaceId as fallback worldspace for PositionCell command

See merge request OpenMW/openmw!3073
2 years ago
Evil Eye 90a3a7b62f Add mWerewolfGMST 2 years ago
Evil Eye a5e1c87fb8 Remove sGmstAttributeIds, sGmstAttributeDescIds, sAttributeIcons 2 years ago
psi29a 692396a608 Merge branch 'ptr_registry' into 'master'
Move Ptr registry into a separate type and fix potential issues

See merge request OpenMW/openmw!3072
2 years ago
elsid 06af4cb56a
Use sDefaultWorldspaceId as fallback worldspace for PositionCell command
store is nullptr at this point because there was no cell found.
2 years ago
elsid 86db640c8b
Increment revision on clearing PtrRegistry
Setting it to 0 may not lead to the change detected by clients. Potentially
mRevision may already have value 0. For example on overflow.
2 years ago
elsid a581e394b4
Check for revision inequality
It's not possible to have SafePtr with mLastUpdate from the future. But
theoretically it's possible to get PtrRegistry::mRevision overflow so operator
less would return false when there is a change.
2 years ago
elsid ce91784085
Move Ptr registry into a separate type
There is no dependency on the rest of the WorldModel state.
2 years ago
psi29a 16a580eb21 Merge branch 'clickbait' into 'master'
Remove sAttributeIds and sSkillIds

See merge request OpenMW/openmw!3071
2 years ago
psi29a 052972033c Merge branch 'get_rid_of_asserts_in_esm' into 'master'
Replace all asserts in components/esm[34] with throw

See merge request OpenMW/openmw!3069
2 years ago
unknown 14600de185 Remove sAttributeIds and sSkillIds 2 years ago
psi29a 36aea64eb8 Merge branch 'refactor_world_model' into 'master'
Cleanup and refactor WorldModel

See merge request OpenMW/openmw!3068
2 years ago
jvoisin c98c532213 Replace all asserts in components/esm[34] with throw 2 years ago
elsid d98852fdbe
Use std::count_if to implement WorldModel::countSavedGameRecords 2 years ago
elsid 3a66854c3c
Avoid confusion for generated cell flags 2 years ago
elsid 60139c6bd5
Use WorldModel::mStore instead of MWBase::Environment::get().getESMStore() 2 years ago
elsid 183202cd65
Remove WorldModel::getCellByPosition function
It's used in a single place. Move the code there.
2 years ago
elsid 235eb65c97
Rename positionToCellIndex to match return type 2 years ago
elsid 98e80d65b0
Remove unused include 2 years ago
elsid b6cd6402cc
Use ranged for loop 2 years ago
elsid a04eb9d26c
Move WorldModel::getPtr(const ESM::RefId&, CellStore&) to CellStore
The function does not depend on WorldModel.
2 years ago
elsid df6630a15c
Move WorldModel private functions to bottom
This is API class. A reader most likely need to know public functions first.
2 years ago
psi29a 67cf3879ac Merge branch 'macos' into 'master'
Support macOS: AMD64 and ARM64

Closes #7393

See merge request OpenMW/openmw!3059
2 years ago
psi29a a5c2ad45dc Support macOS: AMD64 and ARM64 2 years ago
psi29a 2fa4f6c226 Merge branch 'reuse_cell_store' into 'master'
Cleanup WorldModel::getPtr(const ESM::RefId&)

See merge request OpenMW/openmw!3066
2 years ago
elsid 181c894e4c
Skip already visited cells when looking for ptr 2 years ago
elsid 466a7cedbb
Convert pointer to referece where nullptr is not acceptable 2 years ago
elsid 1b116240a3
Try return existing CellStore from WorldModel::getCellStore first 2 years ago
psi29a 05555947c3 Merge branch 'specialdedup' into 'master'
Deduplicate specialization code

See merge request OpenMW/openmw!3063
2 years ago
psi29a 6af3ddfb56 Merge branch 'another_assert' into 'master'
Replace another assert with a throw

See merge request OpenMW/openmw!3064
2 years ago
jvoisin 44a65512e8 Replace another assert with a throw 2 years ago
Evil Eye 877f6747be Deduplicate specialization code 2 years ago
jvoisin 2ab5b8e7b0 Merge branch 'cs_log' into 'master'
Make editor failure to load content files more detailed

See merge request OpenMW/openmw!3062
2 years ago
elsid dc8dfe81ce
Add more details to exceptions 2 years ago
elsid d852ac20f5
Log loading content file 2 years ago
psi29a fec74b7c41 Merge branch 'activeeffect-signature-fix' into 'master'
Fix signature of MWMechanics::MagicEffects::get

See merge request OpenMW/openmw!3061
2 years ago
Mads Buvik Sandvei 85a30c9ad0 Fix signature of MWMechanics::MagicEffects::get. Fix a mistake in the docs. 2 years ago
jvoisin 03ff03005d Merge branch 'missing_include' into 'master'
missing include in attr.cpp

See merge request OpenMW/openmw!3060
2 years ago
Pierre Mossler e6838cddc7 missing include in attr.cpp 2 years ago
psi29a c667d414d8 Merge branch '7275-follow-up-from-formatting-and-coverage-related-cmake-files-fixes-add-cmake-and-cmakelists-txt' into 'master'
Resolve "Follow-up from "Formatting and coverage related CMake files fixes" - add .cmake and CMakeLists.txt to .editorconfig"

Closes #7275

See merge request OpenMW/openmw!2827
2 years ago
Petr Mikheev 4ed283bb15 Merge branch 'create_record_types' into 'master'
Allow creating Activator, Armor, Clothing, Misc, Weapon records via lua

See merge request OpenMW/openmw!2944
2 years ago
Zackhasacat ef004e5eba Allow creating Activator, Armor, Clothing, Misc, Weapon records via lua 2 years ago
psi29a d3ed04c551 Merge branch 'lua-activeeffects' into 'master'
Lua: Actor api for active effects and active spells

See merge request OpenMW/openmw!3036
2 years ago
AnyOldName3 38823cb983 Merge branch 'ci_integration_tests_asan' into 'master'
Add CI job to run integration tests with AddressSanitizer

See merge request OpenMW/openmw!3056
2 years ago
Petr Mikheev e74161ea8e Merge branch 'slashrslashmarijuanaenthusiasts' into 'master'
Improve Skyrim tree loading (limited)

See merge request OpenMW/openmw!3054
2 years ago