Added module-cross communication services
Pre-release
Pre-release
- Added
Equals()
andGetHashCode()
methods which were previously missing in bothSound
andModuleContainer
. - Added
IModule
andITuple
interface for abstract classModuleScript
and the multipleTuple
types respectively. - Added
InsertNewlines()
toHelper
which automates placing line breaks on evenly-spaced intervals prioritizing whitespace easier. - Added
ModuleScript
'sRead<T>()
andWrite<T>()
methods. This allows different assemblies to access the same data without resorting to reflection. - Added
PrintHierarchy()
andPrintFullHierarchy()
toPathManager
, allowing you to diagnose issues related to seeing the structure of the scene, such as usingGetComponentsInParent
orGetComponentsInChildren
. - Changed
DynamicAudio
to be sealed. You can no longer derive from this class. - Changed
Helper
'sUnwrap
to include a try-catch forSecurityException
s. - Changed
ModuleScript
'sIsEditor
to be static. If you are referencingIsEditor
outside of a script file deriving fromModuleScript
, you need to now declare the type name instead of an instance. - Changed
PathManager
to throw an exception ifLoadVideoClips
returns an empty array of videos. - Changed
ModuleContainer
's constructor exception about bothKMBombModule
andKMNeedyModule
being null. - Changed
TPScript
's generic to beTModule
for clarity, as it's present throughout the whole class. If you have a generic method, you are likely able to rename it back toT
since it is no longer taken. - Removed
UnityComponentNotFoundException
sinceMissingComponentException
already exists.