pokecrystal icon indicating copy to clipboard operation
pokecrystal copied to clipboard

Map/object/event cleanup

Open Rangi42 opened this issue 5 years ago • 6 comments

Points carried over from #639 :

  • [x] Map setup command constants vs. functions
  • [x] map_warp_face vs. RestoreFacingAfterWarp are misnomers
  • [ ] object_struct constant names should match WRAM labels
  • [ ] *MapObject* -> *ObjectEvent*

Rangi42 avatar Nov 05 '19 00:11 Rangi42

Will this be worked on in some fashion? Next thing to do would be to resolve the misnomers that are map_warp_face and RestoreFacingAfterWarp.

rawr51919 avatar Jan 06 '20 21:01 rawr51919

No, this won't be worked on any more. :P

Rangi42 avatar Jan 06 '20 22:01 Rangi42

Might be easiest to do point 4, as all that entails is replacing every MapObject* label with a ObjectEvent* one, but would wMapObjects need to be renamed to wObjectEvents or nah?

rawr51919 avatar Jan 06 '20 22:01 rawr51919

Please read the linked Issue for details.

mid-kid avatar Jan 06 '20 23:01 mid-kid

From reading the linked issue; Let's see if the following is what we want to do for point 4:

  • map_object: MACRO => object_event: MACRO (And eventually MACRO object_event)
  • MAPOBJECT_OBJECT_STUCT_ID => OBJECTEVENT_OBJECT_STRUCT_ID (and likewise for the rest)
  • MAPOBJECT_LENGTH EQU _RS => OBJECTEVENT_LENGTH EQU _RS (And eventually DEF OBJECTEVENT_LENGTH EQU _RS)
  • wMapObjects => wObjectEvents

What about the following:

  • wCurMapObjectEventCount
  • wCurMapObjectEventsPointer
  • wTempObjectCopyMapObjectIndex
  • The map_object* file names... example (constants/map_object_constants.asm).

I'm just trying to determine the scope of this, and if it is something I can create a PR for.

vulcandth avatar Apr 25 '22 14:04 vulcandth

object_event, and generally *_event, is used within map scripts already.

Rangi42 avatar Apr 26 '22 20:04 Rangi42