Commit Graph

24 Commits

Author SHA1 Message Date
David Markowitz
6863ee9d76 Merge branch 'main' into moreMovementAi 2024-02-24 22:19:45 -08:00
jadebenn
5225c86d65
chore: Misc. component cleanup (#1433)
* Misc component cleanup

* Update InventoryComponent.h

* Update MissionComponent.h

* Update PropertyManagementComponent.h

* Update PropertyVendorComponent.h

* Update SkillComponent.h

maximum pedantry B)

* SoundTriggerComponent.h braces gone

* Rename SoundTriggerComponent.h braces gone to SoundTriggerComponent.h

I was tired
2024-01-23 23:13:23 -06:00
David Markowitz
ae349d6b15
feat: Add isolated and simplified path to add components (#1204)
* Components: Make ComponentType inline

Prevents the next commits ODR violation

* Components: Add new components

* Entity: Add headers

inline script component ComponentType

* Components: Flip constructor argument order

Entity comes first always

* Entity: Add generic AddComponent

Allows for much easier adding of components and is error proof by not allowing the user to add more than 1 of a specific component type to an Entity.

* Entity: Migrate all component constructors

Move all to the new variadic templates AddComponent function to reduce clutter and ways the component map is modified.
The new function makes no assumptions.  Component is assumed to not exist and is checked for with operator[].  This will construct a null component which will then be newed if the component didnt exist, or it will just get the current component if it does already exist.  No new component will be allocated or constructed if the component already exists and the already existing pointer is returned instead.

* Entity: Add placement new

For the case where the component may already exist, use a placement new to construct the component again, it would be constructed again, but would not need to go through the allocator.

* Entity: Add comments on likely new code

* Tests: Fix tests

* Update Entity.cpp

* Update SGCannon.cpp

* Entity: call destructor when re-constructing

* Update Entity.cpp

Update Entity.cpp

---------

Co-authored-by: Aaron Kimbrell <aronwk.aaron@gmail.com>
2023-10-22 20:08:49 -05:00
David Markowitz
5942182486
feat: Abstract Logger and simplify code (#1207)
* Logger: Rename logger to Logger from dLogger

* Logger: Add compile time filename

Fix include issues
Add writers
Add macros
Add macro to force compilation

* Logger: Replace calls with macros

Allows for filename and line number to be logged

* Logger: Add comments

and remove extra define

Logger: Replace with unique_ptr

also flush console at exit. regular file writer should be flushed on file close.

Logger: Remove constexpr on variable

* Logger: Simplify code

* Update Logger.cpp
2023-10-21 16:31:55 -07:00
Aaron Kimbre
dd2338601e Combine files
Add LUtrigger interfaces and calling
2023-08-23 14:53:02 -05:00
David Markowitz
294efe0fe0 Fixed speed stuff
Should be tested more.
2023-08-21 12:33:13 -07:00
Aaron Kimbre
5168404567 fix path starting waypoint 2023-08-15 09:47:45 -05:00
David Markowitz
b659edd980 Yes 2023-08-14 20:28:27 -07:00
Aaron Kimbre
a63d7df0d2 Add waypoint command handling 2023-08-14 09:31:10 -05:00
David Markowitz
56ab6bd4c3 updates 2023-08-12 00:40:18 -07:00
Aaron Kimbre
84ba38bd1d Add some command handlers 2023-08-12 00:40:48 -05:00
David Markowitz
5f7a108154 woirking 2023-08-09 00:34:39 -07:00
David Markowitz
ed0c979544 Add file for u aronwk 2023-08-07 18:40:06 -07:00
David Markowitz
d372278b25 add arrived handler 2023-08-07 02:03:09 -07:00
David Markowitz
b546c96193 Add reversing 2023-08-07 01:46:03 -07:00
David Markowitz
aa734ef7ae Working Pausing and Resuming 2023-08-07 00:44:57 -07:00
David Markowitz
6a5ff30a32 Working built in reverse for movementAI 2023-08-06 23:40:30 -07:00
David Markowitz
3e12dd782b working forward 2023-08-06 21:15:06 -07:00
David Markowitz
bce87aaa06 use indexes for pathing 2023-08-06 20:25:22 -07:00
David Markowitz
d8a5fd49a4
chore: Small movementAiComponent cleanup (#1145)
* rename and cleanup file

* more

* fix broken function

* Further naming fixes

t

Revert "Further naming fixes"

This reverts commit 057189982ba56788d48f9265d815e6c562ba6328.

* next step

* undo all testing changes

* minor tweaks
2023-08-03 21:38:04 -05:00
Aaron Kimbrell
e524b86e12
breakout the component types into a scoped enum (#1002)
* breakout the component types into a scoped enum

tested that things are the same as they were before

* fix missed rename

* fix brick-by-brick name to be crafting
because that's what it is
2023-03-04 01:16:37 -06:00
aronwk-aaron
19e77a38d8 format codebase 2022-07-28 08:39:57 -05:00
EmosewaMC
9d79fc3d2e resolved MacOS compilation warnings 2022-04-05 05:11:06 -07:00
Unknown
0545adfac3 Public release of the DLU server code!
Have fun!
2021-12-05 18:54:36 +01:00