-
Notifications
You must be signed in to change notification settings - Fork 806
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
Define relationship between map_object and object_events #1054
Conversation
If you're moving |
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.
Hmm. I liked keeping all the *OBJECT_LENGTH
constants together. Although object_event
fields do happen to correspond directly to a subset of map_object
fields. How about changing script_constants.asm:
; An object_event is a map_object without its leading MAPOBJECT_OBJECT_STRUCT_ID
DEF OBJECT_EVENT_SIZE EQU MAPOBJECT_LENGTH - 1 ; 13
This is also an opportunity to define field constants for all of the warp/coord/bg/object event macros, instead of hard-coding their total sizes. |
Unfortunately It is without the leading So it would have to be something like:
We could just define it as it's own struct... but... seems kinda redundant. |
I'm okay with this:
|
a56be57
to
627b447
Compare
627b447
to
4984d32
Compare
Opening this PR to further demonstrate what I'm suggesting should be done in issue #1031. Please review and look it over. If you don't think this is a good idea, or feel we want to have more conversation before this; feel free to close this PR or draft it.
Resolves #1031