Commit Graph

252 Commits

Author SHA1 Message Date
Christian Semmler
d4317ebb0a Merge branch 'master' into mxregion 2023-10-23 07:36:05 -04:00
Nathan M Gilbert
4cc6b9b8ec Implement Score (#230)
* Implement Score

* Update mxomni.cpp

Fix case of OFFSET comment.

* Fix DeleteObjects

* Apply changes (see comment)

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-23 13:16:21 +02:00
Misha
724c953947 Implement MxDSBuffer constructor, match MxDSSource::FUN_100bffd0 (#235)
* Implement MxDSBuffer constructor, match FUN_100bffd0

* Match to 100%, minor style fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-22 21:58:05 +02:00
Ramen2X
5ab993bfda cleanup: fix all improper uses of MxResult (#234)
* cleanup: fix all improper uses of MxResult
2023-10-22 13:38:25 -04:00
Ramen2X
7e907cfe3f implement/match JukeBoxState (#233) 2023-10-22 11:33:29 -04:00
Misha
681ab9c026 implement most of MxBackgroundAudioManager (#232)
* implement most of MxBackgroundAudioManager

* Match OpenMusic to 100%, style fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-22 16:11:46 +02:00
Misha
50fe5f9c83 implement LegoSoundManager vtable (#231)
* LegoSoundManager

* Fix virtual function declarations/locations

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-22 15:48:20 +02:00
MS
ae908a74cc Copy constructor for MxVideoPresenter::AlphaMask (#229) 2023-10-21 19:47:48 -04:00
Joshua Peisach
af0e38176c MxSoundPresenter (#227)
* MxSoundPresenter

Destructor, destroy, function adding itself to the sound manager and vtable38.

* Fix virtual function declarations

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-22 00:41:05 +02:00
MS
85d94baa50 MxVideoPresenter AlphaMask (formerly UnkStruct) (#226) 2023-10-22 00:40:31 +02:00
Christian Semmler
5dfb132025 Implement MxOmni::DoesEntityExist and related (#225)
* Implement MxOmni::DoesEntityExist and related

* Rename function for consistency
2023-10-21 17:23:55 -04:00
Christian Semmler
6931a817a6 Implement NotifyCurrentEntity (#224) 2023-10-21 17:02:55 -04:00
Christian Semmler
d68297f658 Simplify function 2023-10-20 15:41:03 -04:00
Christian Semmler
19722d413c Match loops 2023-10-20 15:36:03 -04:00
Joshua Peisach
4f201eaa48 MxEventPresenter destructor (#223)
* MxEventPresenter destructor

* Fix and implement Destroy

* Fix scope of Destroy decl

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-20 20:41:23 +02:00
Christian Semmler
935c74513d Fix comment 2023-10-20 09:26:10 -04:00
Christian Semmler
1919135682 Implement remaining functions 2023-10-20 09:23:04 -04:00
Christian Semmler
6569a6a8c7 Add template annotations 2023-10-19 18:39:49 -04:00
Christian Semmler
38a349aed4 Fix indent 2023-10-19 18:12:56 -04:00
Christian Semmler
21e8705597 Don't expose internal match 2023-10-19 18:12:35 -04:00
Christian Semmler
2edc1fd961 More implementation 2023-10-19 18:10:11 -04:00
Christian Semmler
b77b3b3568 Implement/match more functions 2023-10-19 16:31:26 -04:00
Christian Semmler
fe40cbb772 Implement/match MxRegionTopBottom::MxRegionTopBottom 2023-10-19 15:39:06 -04:00
Christian Semmler
3a21834382 Rename virtual function to fix override (#222) 2023-10-19 13:07:05 -04:00
Ramen2X
fbb3b4930c label ScoreState::VTable0x18 and associated member (#221) 2023-10-19 12:56:56 -04:00
Christian Semmler
27e064e69d Add GetPoint 2023-10-19 09:19:23 -04:00
Christian Semmler
26bde7a03d Refactor 2023-10-19 08:03:11 -04:00
Christian Semmler
20d08d3124 Fix another bug 2023-10-19 07:58:22 -04:00
Christian Semmler
28d497966b Fix missing instructions 2023-10-19 07:41:17 -04:00
Ramen2X
adbe73d664 implement/match ScoreState vtable (#220)
* implement/match ScoreState vtable

* add size assert for ScoreState
2023-10-19 03:26:32 -04:00
Christian Semmler
553734c9f6 Add two template annotations 2023-10-18 18:35:29 -04:00
Christian Semmler
85c6a0b049 Add MxSize32, match MxRegion ctor 2023-10-18 18:21:49 -04:00
Christian Semmler
ab81adf774 Refactor 2023-10-18 16:42:38 -04:00
Christian Semmler
d3858d51a6 Use MxRect32 ctor 2023-10-18 16:22:29 -04:00
Ramen2X
52e6c9ac22 implement/match global ControlManager() function (#219)
* implement/match global ControlManager() function

* remove unnecessary forward declaration
2023-10-18 22:12:28 +02:00
Christian Semmler
e7f14ecda4 WIP 2023-10-18 16:09:33 -04:00
Christian Semmler
2407b9e798 Refactor 2023-10-17 18:37:56 -04:00
Christian Semmler
0604f25778 MxRegion structures 2023-10-17 18:12:24 -04:00
Ramen2X
7c26a4d2dc fix LegoState::VTable0x1C fake-match & implement LegoFileStream::FUN_10006030 (#217)
* fix LegoState::VTable0x1C fake-match, implement LegoFileStream::FUN_10006030

* Match and relocate FUN_10006030

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-18 00:05:31 +02:00
Christian Semmler
476af22b36 Add size assert for MxVideoManager, sort functions 2023-10-17 09:16:37 -04:00
Christian Semmler
727c748ecd Implement/match MxVideoManager::InvalidateRect and UpdateRegion (#214)
* Implement/match MxVideoManager::InvalidateRect and UpdateRegion

* Update comment
2023-10-16 16:20:52 -07:00
Ramen2X
8b1c8f7abe use MxResult return type in MxCore::Tickle() 2023-10-16 18:46:45 -04:00
Ramen2X
3a1cab323f complete and match LegoState vtable (#216) 2023-10-16 16:18:35 -04:00
Misha
3dee6eae7a MxVideoPresenter functions (#187)
* mxvideopresenter

* Update mxvideopresenter.cpp

* use inline getter for rectange width/height

* Update mxvideopresenter.cpp

* Match MxVideoPresenter::Destroy to ~88%

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-16 22:09:08 +02:00
Ramen2X
b95656a735 implement GasStationState::GasStationState() (#215)
* implement GasStationState::GasStationState()

* Match 100%

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-10-16 20:17:23 +02:00
Christian Semmler
50b9a39b2f Use memset to be consistent with the rest 2023-10-16 09:27:23 -04:00
Andrew Gutekanst
000c019a0e Add LegoVehicleBuildState (#213)
* Add LegoVehicleBuildState

* Update LegoVehicleBuildState member-var names to include offsets
2023-10-16 15:22:21 +02:00
Ramen2X
ba8ae8138e implement/match MxTransitionManager::Transition_Windows() (#212) 2023-10-15 19:41:05 -04:00
Christian Semmler
37e75703d4 MxOmni::Create 100% match, make Create calls consistent (#211)
* Improve MxOmni::Create match, make Create calls consistent

* Match MxEventManager::Create

* Fix MxTickleClientPtrList

* 100% match

* Update mxomnicreateparam.h
2023-10-14 20:49:07 -04:00
Ramen2X
0c8705a9df implement/match MxTransitionManager::Transition_Broken() (#210) 2023-10-14 15:54:49 -04:00