Skip to content

1.4.2

Latest
Compare
Choose a tag to compare
@MarvinBeym MarvinBeym released this 07 Dec 12:57
916bf1e

What's Changed

  • Fix replaced state able to be set to false even though original part is installed physically on the car
  • Move Methods AddActionAsFirst & AddActionAsLast to Extensions making them publicly available.
  • Introduce Initialized Event Listener.
    • MscModApi waits ~5 seconds after the the mod has fully loaded. Only after those 5 seconds the ReplacedGameParts is initialized and all Initialized Event Listeners are called.
    • Calls to the following methods are automatically wrapped into initialized event listeners and added as such until game has initialized:
      • AddNewPart
      • RemoveNewPart
      • SetReplacedState
      • RemoveEventListener (Except Initialized event listeners)
      • AddEventListener (All event listeners except ReplacedGamePartsEvent.Type.Initialized itself are wrapped into initialized event listeners) (until initialized)
    • The property replaced will return false until initialized
  • Removed ReplacePart classes marked as obsolete in the past (ReplacementPart, NewPart, OldPart)

Full Changelog: 1.4.1...1.4.2