You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Legacy/CryCommon
Artur K 56904d1799
Cry Legacy: the Lessening (#5961)
* Generic Cleanup

Removals:

* Unused cvars,member variables and defines
* Windows media center edition support routines
* CSystem - removed debug_GetCallStackRaw/GetRootWindowMessageHandler/
UnloadDLL/ShutdownModuleLibraries

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Fix CryMessageBox return values in Windows build

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove named selection group and a few smaller unused functionalities

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove ObjectManager export functionality + 2 deprecated functions

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove object legacy freeze/hide support from ObjectManager

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove ObjectManager duplicate name dection, as well as object renaming

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove ObjectManager serialization and selection callbacks

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* ObjectManager - remove MoveObjects/HitTestObject/EndEditParams and related members/functions

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove a bunch of unused clone related functionality + misc

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* ObjectManager - misc removals

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* ObjectManager - more removals

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove unused object selection/retrieval in ObjectManager and LoadObjects in ObjectLoader

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* CBaseObject - remove unused material layers mask support

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* More CBaseObject cleanups.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* CBaseObject - remove SubObj functions and IMouseCreateCallback

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove unused procedural floor management, helper scale and tags.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* CBaseObject - remove more unused methods.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Removals in multiple places.

CBaseObject - unused `OBJTYPE_DUMMY` flag removed, member `IsSameClass`
CObjectArchive removed unused methods/members
CObjectManager removed unused `Update` method

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* More removals

IDisplayViewport - HitTestLine/GetGridStep/setHitcontext/
GetConstructionPlane
Unused Cry_Matrix44 template specializations.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* O3DE.exe Project-Centric "Open Editor" fix (#5852)

* The O3DE.exe Open Editor button now attempts to open the Editor in the
build directory of the project being opened.

If their is no Editor within the build directory of the Project, it uses
the Editor.exe in the current O3DE.exe executable directory if it exists

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Engine .gitignore now ignores the build directory if placed in the
AutomatedTesting project

Previously it was just ignoring a `[Bb]uild` directory if it was
directly within the engine root.
This change matches the behavior of the project templates.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Renamed the ProjectUtils GetEditorDirectory function to
GetEditorExecutablePath

Added a platform specific implementation for retrieving the path to the
Editor executable in the GetEditorExectuablePath function.

It first attempts to locate the Editor via checking the project build
directory for an Editor executable before falling back to checking the
binary directory of the currently running O3DE executable.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Correct the MacOS GetEditorExecutablePath to return the Editor path

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Adding missing C++20 std::erase implementations (#5735)

There were already implementations for std::erase_if.
This adds the counterpart AZStd::erase versions

resolves #5734

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* More removals and refactors

`ShowMessage` and `CryMessageBox` return void now
Simplify code in `CSystem::WarningV`
Remove unused `CryGetTicksPerSec`
Remove unused WinBase functionality
Replace `nanosleep` call in WinBase with `std::this_thread::sleep_for`
Remove unused Win32Wrapper routines
Remove unused IFunctorBase.h and IEntityObjectListener.h
Fix VectorAndArray.cpp compilation
Use QMessageBox instead of CryMessageBox in the editor.
Remove empty ArchiveVars platform specific files

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Fix test code.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove an unused  function

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* CBaseObject and undo description removals.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* A bunch of removals

* Remove IRenderNode
* Remove editor's KDTree
* Remove StatObjBus, InstanceStatObjEventBus::ReleaseData is redundant (
same functionality in the only available handler is triggered by
`OnCryEditorCloseScene`)
* Remove CExportManager::AddStatObj/AddMeshes/AddMesh,
IExportManager::ExportSingleStatObj
* Remove CIconManager/IIconManager::GetObject
* Remove CBaseObject::IntersectRayMesh
* Remove IIndexedMesh and related structs.
* Unused IUndoObject::GetDescription and all derived implementations.
* Unused CUndoBaseLibrary/CUndoBaseLibraryManager
* Unused Matrix34_tpl typedefs
* Legacy Xml classes cleanup

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove unused `Vec3ToVector3D` helper

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* fix - remove unused static variable

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
LyShine Removal and Replacement of the CryTimer (gEnv->pTimer) (#5409) 4 years ago
Maestro Cleanup SerializeContext.h pt.1 (#4264) 4 years ago
Mocks Cry Legacy: the Lessening (#5961) 4 years ago
Platform Various fixes and empty boilerplate files required for restricted platforms. (#3610) 4 years ago
AndroidSpecific.h remove unnecessary ALIGN macros 4 years ago
AnimKey.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
AppleSpecific.h Cry Legacy: the Lessening (#5961) 4 years ago
BaseTypes.h Legacy code cleanup - part 3 (#3903) 4 years ago
CMakeLists.txt Various fixes and empty boilerplate files required for restricted platforms. (#3610) 4 years ago
CryAssert.h platform.h cleanup 4 years ago
CryAssert_Android.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CryAssert_Linux.h [redcode/crythread-2nd-pass] replaced instances of AZStd::lock_guard<> with AZStd::scoped_lock as per feedback 4 years ago
CryAssert_Mac.h [redcode/crythread-2nd-pass] removed or replaced remaining CryMutex/CryLock usage with equivalent AZStd version 4 years ago
CryAssert_iOS.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CryAssert_impl.h Merge branch 'development' into cmake/SPEC-7179 5 years ago
CryEndian.h Legacy code cleanup - part 3 (#3903) 4 years ago
CryFile.h Updated the GameApplication to mount the engine.pak (#4128) 4 years ago
CryHalf.inl Legacy code cleanup - part 3 (#3903) 4 years ago
CryLegacyAllocator.h CryLegacyAllocator cleanup 5 years ago
CryListenerSet.h Legacy code cleanup - part 3 (#3903) 4 years ago
CryPath.h Update the FileIO Aliases (#4186) 4 years ago
CryRandomInternal.h removing more unused stuff 4 years ago
CrySystemBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CryVersion.h some fixes 4 years ago
Cry_Color.h Legacy code cleanup - part 3 (#3903) 4 years ago
Cry_Geo.h Legacy code cleanup - part 3 (#3903) 4 years ago
Cry_GeoDistance.h Legacy cleanup (#3383) 4 years ago
Cry_GeoIntersect.h Legacy cleanup (#3383) 4 years ago
Cry_Math.h Add a missing #include and [[maybe_unused]] (#5960) 4 years ago
Cry_Matrix33.h Legacy code cleanup - part 3 (#3903) 4 years ago
Cry_Matrix34.h Cry Legacy: the Lessening (#5961) 4 years ago
Cry_Matrix44.h Cry Legacy: the Lessening (#5961) 4 years ago
Cry_Quat.h Legacy code cleanup - part 3 (#3903) 4 years ago
Cry_ValidNumber.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Cry_Vector2.h Clang/Clazy pass over AzCore (#5045) 4 years ago
Cry_Vector3.h Legacy code cleanup - part 3 (#3903) 4 years ago
Cry_Vector4.h Fix some debug compile errors introduced by https://github.com/o3de/o3de/pull/3903 4 years ago
IAudioInterfacesCommonData.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IAudioSystem.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ICmdLine.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IConsole.h Merge branch 'development' into cmake/warn_virtual 4 years ago
IFont.h Legacy code cleanup - part 3 (#3903) 4 years ago
IGem.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IIndexedMesh.h Cry Legacy: the Lessening (#5961) 4 years ago
ILevelSystem.h Legacy code cleanup - part 3 (#3903) 4 years ago
ILocalizationManager.h Merge branch 'development' into cmake/warn_virtual 4 years ago
ILog.h Legacy code cleanup - part 3 (#3903) 4 years ago
IMNM.h Merge branch 'development' into cmake/SPEC-7179 5 years ago
IMaterial.h Legacy code cleanup - part 3 (#3903) 4 years ago
IMiniLog.h more fixes 4 years ago
IMovieSystem.h Remove the legacy ViewSystem and some other tangentially related legacy code. (#5558) 4 years ago
INavigationSystem.h Legacy cleanup (#3383) 4 years ago
IPathfinder.h Legacy code cleanup - part 3 (#3903) 4 years ago
IProcess.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
IRenderAuxGeom.h Remove the legacy ViewSystem and some other tangentially related legacy code. (#5558) 4 years ago
IRenderer.h Remove the legacy ViewSystem and some other tangentially related legacy code. (#5558) 4 years ago
ISerialize.h Legacy code cleanup - part 3 (#3903) 4 years ago
IShader.h Remove the legacy ViewSystem and some other tangentially related legacy code. (#5558) 4 years ago
ISplines.h Legacy code cleanup - part 3 (#3903) 4 years ago
ISystem.h Cry Legacy: the Lessening (#5961) 4 years ago
ITexture.h Legacy code cleanup - part 3 (#3903) 4 years ago
IValidator.h Legacy code cleanup - part 3 (#3903) 4 years ago
IWindowMessageHandler.h Merge branch 'development' into cmake/SPEC-7179 5 years ago
IXml.h Cry Legacy: the Lessening (#5961) 4 years ago
LCGRandom.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
LegacyAllocator.cpp Merge branch 'development' into cmake/AddressSanitizer 4 years ago
LegacyAllocator.h Deprecate profiler categories based on global enum 4 years ago
Linux32Specific.h remove unnecessary ALIGN macros 4 years ago
Linux64Specific.h remove unnecessary ALIGN macros 4 years ago
LinuxSpecific.h Cry Legacy: the Lessening (#5961) 4 years ago
Linux_Win32Wrapper.h Cry Legacy: the Lessening (#5961) 4 years ago
LoadScreenBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
LocalizationManagerBus.h Legacy code cleanup - part 3 (#3903) 4 years ago
LocalizationManagerBus.inl Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MacSpecific.h Several build fixes 4 years ago
MainThreadRenderRequestBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MathConversion.h Legacy code cleanup - part 3 (#3903) 4 years ago
MicrophoneBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MiniQueue.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MultiThread_Containers.h Legacy code cleanup - part 3 (#3903) 4 years ago
NullAudioSystem.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
PNoise3.h fixes for Code/CryEngine 4 years ago
ProjectDefines.h fixes some install paths issues in monolithic release (#4422) 4 years ago
Random.h Legacy code cleanup - part 3 (#3903) 4 years ago
Range.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ScopedVariableSetter.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
SerializationTypes.h Legacy code cleanup - part 3 (#3903) 4 years ago
SerializeFwd.h Legacy code cleanup - part 3 (#3903) 4 years ago
SimpleSerialize.h more fixes 4 years ago
StaticInstance.h Legacy cleanup (#3383) 4 years ago
StlUtils.h Cleanup: Remove cry load dll functions (#5295) 4 years ago
Synchronization.h Legacy code cleanup - part 3 (#3903) 4 years ago
TimeValue.h Legacy code cleanup - part 3 (#3903) 4 years ago
VectorMap.h some fixes 4 years ago
Vertex.h Legacy cleanup, part 2 (#3659) 4 years ago
VertexFormats.h Legacy code cleanup - part 3 (#3903) 4 years ago
Win32specific.h remove unnecessary ALIGN macros 4 years ago
Win64specific.h remove unnecessary ALIGN macros 4 years ago
WinBase.cpp Cry Legacy: the Lessening (#5961) 4 years ago
XMLBinaryHeaders.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
crycommon_files.cmake Cry Legacy: the Lessening (#5961) 4 years ago
crycommon_testing_files.cmake Removal and Replacement of the CryTimer (gEnv->pTimer) (#5409) 4 years ago
iOSSpecific.h removing more unused stuff 4 years ago
platform.h Cry Legacy: the Lessening (#5961) 4 years ago
platform_impl.cpp Cry Legacy: the Lessening (#5961) 4 years ago
smartptr.h Legacy cleanup, part 2 (#3659) 4 years ago