Skip to content

Remove group when going back in time and unit does not exist yet#7

Merged
indig0fox merged 1 commit intomainfrom
fk_removeoldunits
Jul 10, 2021
Merged

Remove group when going back in time and unit does not exist yet#7
indig0fox merged 1 commit intomainfrom
fk_removeoldunits

Conversation

@fank
Copy link
Member

@fank fank commented Jul 10, 2021

No description provided.

@fank fank requested a review from indig0fox July 10, 2021 10:42
@fank fank changed the title Remove unit when going back in time Remove group when going back in time and unit does not exist yet Jul 10, 2021
Copy link
Member

@indig0fox indig0fox left a comment

Choose a reason for hiding this comment

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

Is this a draft? Remove doesn't do anything yet and at the moment just leaves an orphaned marker outside of future entity control here

@fank
Copy link
Member Author

fank commented Jul 10, 2021

No it works, because its already implemented but never called.
https://github.com/OCAP2/web/blob/main/static/scripts/ocap.unit.js#L101

@indig0fox
Copy link
Member

NOOP method on parent allows calls to method always and if overridden by child class (i.e. unit) then will perform the operation of removing the unit from the group when the unit isn't present on that frame

@indig0fox indig0fox merged commit 0d8ceed into main Jul 10, 2021
@indig0fox indig0fox deleted the fk_removeoldunits branch July 10, 2021 15:19
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.

2 participants