Skip to content
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

Merged
merged 5 commits into from
May 1, 2017
Merged

Landblocks #309

merged 5 commits into from
May 1, 2017

Conversation

OptimShi
Copy link
Collaborator

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!

@Forbiddenz
Copy link
Contributor

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

Copy link
Contributor

@Mogwai-TheFurry Mogwai-TheFurry left a 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
Copy link
Contributor

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"xxxx" is the Landblock

@Mogwai-TheFurry Mogwai-TheFurry merged commit 1fc71b3 into ACEmulator:master May 1, 2017
@OptimShi OptimShi deleted the landblocks branch May 21, 2017 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants