Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] what's the underlying design for that? smartptr with custom return operators?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
01-16-2024, 03:53 PM
#11
Archived author: Northstrider • Posted: 2024-01-16T15:53:19.918000+00:00
Original source

that's the whole point of mutual references. if you change the map, the first object invokes a dtor which will then grab the 2nd reference and set it to nullptr
rektbyfaith
01-16-2024, 03:53 PM #11

Archived author: Northstrider • Posted: 2024-01-16T15:53:19.918000+00:00
Original source

that's the whole point of mutual references. if you change the map, the first object invokes a dtor which will then grab the 2nd reference and set it to nullptr

rektbyfaith
Administrator
0
01-16-2024, 03:53 PM
#12
Archived author: Northstrider • Posted: 2024-01-16T15:53:55.575000+00:00
Original source

so I can imagine it being some kind of reference holder inside of maps
rektbyfaith
01-16-2024, 03:53 PM #12

Archived author: Northstrider • Posted: 2024-01-16T15:53:55.575000+00:00
Original source

so I can imagine it being some kind of reference holder inside of maps

rektbyfaith
Administrator
0
01-16-2024, 03:54 PM
#13
Archived author: jackpoz • Posted: 2024-01-16T15:54:46.336000+00:00
Original source

or, you just do a ObjectAccessor::GetX() once per map update when needed in the wrapper
rektbyfaith
01-16-2024, 03:54 PM #13

Archived author: jackpoz • Posted: 2024-01-16T15:54:46.336000+00:00
Original source

or, you just do a ObjectAccessor::GetX() once per map update when needed in the wrapper

rektbyfaith
Administrator
0
01-16-2024, 03:54 PM
#14
Archived author: jackpoz • Posted: 2024-01-16T15:54:54.190000+00:00
Original source

and never expose the return object to the caller
rektbyfaith
01-16-2024, 03:54 PM #14

Archived author: jackpoz • Posted: 2024-01-16T15:54:54.190000+00:00
Original source

and never expose the return object to the caller

rektbyfaith
Administrator
0
01-16-2024, 03:55 PM
#15
Archived author: jackpoz • Posted: 2024-01-16T15:55:13.291000+00:00
Original source

and decide what to do if invalid (probably nothing, just log a warning)
rektbyfaith
01-16-2024, 03:55 PM #15

Archived author: jackpoz • Posted: 2024-01-16T15:55:13.291000+00:00
Original source

and decide what to do if invalid (probably nothing, just log a warning)

rektbyfaith
Administrator
0
01-16-2024, 03:55 PM
#16
Archived author: jackpoz • Posted: 2024-01-16T15:55:26.090000+00:00
Original source

or throw a C++ exception handled by game
rektbyfaith
01-16-2024, 03:55 PM #16

Archived author: jackpoz • Posted: 2024-01-16T15:55:26.090000+00:00
Original source

or throw a C++ exception handled by game

rektbyfaith
Administrator
0
01-16-2024, 03:55 PM
#17
Archived author: jackpoz • Posted: 2024-01-16T15:55:32.838000+00:00
Original source

so no crash
rektbyfaith
01-16-2024, 03:55 PM #17

Archived author: jackpoz • Posted: 2024-01-16T15:55:32.838000+00:00
Original source

so no crash

rektbyfaith
Administrator
0
01-16-2024, 04:10 PM
#18
Archived author: Northstrider • Posted: 2024-01-16T16:10:42.991000+00:00
Original source

is PLAYER_FIELD_BYTE_HIDE_PET_BAR = 0x00000020 still valid for master client? (does the client support it? will be a important feature for cata pets later)
rektbyfaith
01-16-2024, 04:10 PM #18

Archived author: Northstrider • Posted: 2024-01-16T16:10:42.991000+00:00
Original source

is PLAYER_FIELD_BYTE_HIDE_PET_BAR = 0x00000020 still valid for master client? (does the client support it? will be a important feature for cata pets later)

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)