-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Landblocks #309
Landblocks #309
Conversation
I would keep it separated but you may need to see why the the ref issue is happening and if it all that ref is still needed. Logically I say cell data would not have any ref at all and would be ref by ace, and other classes. The circular ref occurres when the ace ref points to cell and the cell ref points to ace. That is poor ok code design so you got to make sure through proper project layout and code design that you only use the ref project as a ref project and not try to interconnect the too. Hope that helps a little |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this, but please make the requested changes in a new PR when you can.
/// </summary> | ||
namespace ACE.DatLoader.FileTypes | ||
{ | ||
public class CellLandblock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Landcell" would have been much preferred.
/// Height 0-9 is Western most edge. 10-18 is S-to-N strip just to the East. And so on. | ||
/// </summary> | ||
|
||
// Places in the inland sea, for example, are false. Should denote presence of xxxxFFFE (where xxxx is the cell). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"xxxx" is the Landblock
Added client_cell.dat reading for Landblocks and proper z value for @Tele commands.
I attempted to add the client_cell.dat reading into the Position class itself, but this caused a cyclical reference. Not sure what the best way to address that is (or if there is even a need?)
Next step is to either complete the other sections of the client_cell.dat reading or to cache these. I don't like that it doesn't right now, since monsters & players & projectiles are going to generate an awful lot of file reads!