[DiscordArchive] what's the underlying design for that? smartptr with custom return operators?
[DiscordArchive] what's the underlying design for that? smartptr with custom return operators?
Archived author: Northstrider • Posted: 2024-01-16T15:48:16.209000+00:00
Original source
what's the underlying design for that? smartptr with custom return operators?
Archived author: jackpoz • Posted: 2024-01-16T15:48:18.478000+00:00
Original source
and then I realized the API surface had to be reduced a lot, like really a lot
Archived author: jackpoz • Posted: 2024-01-16T15:48:59.808000+00:00
Original source
I would say something similar to what spells do on even world update
Archived author: jackpoz • Posted: 2024-01-16T15:49:17.463000+00:00
Original source
you don't even need smart ptrs if you never allocate on the heap
Archived author: jackpoz • Posted: 2024-01-16T15:49:38.668000+00:00
Original source
in then end it's just a guid passed around
Archived author: Northstrider • Posted: 2024-01-16T15:50:45.001000+00:00
Original source
yeah, might also be just a mutual reference thing. if one reference breaks, the other one gets undone as well similar to how AbstractFollower works
Archived author: jackpoz • Posted: 2024-01-16T15:51:51.134000+00:00
Original source
that sounds more messy
Archived author: jackpoz • Posted: 2024-01-16T15:52:11.224000+00:00
Original source
like if a player changes map
Archived author: jackpoz • Posted: 2024-01-16T15:53:06.382000+00:00
Original source
unless you end up adding all the invalidation cases whenever "something" happens
Archived author: jackpoz • Posted: 2024-01-16T15:53:14.165000+00:00
Original source
I would do that in the wrapper instead