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

Added see_new_friend API. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added see_new_friend API. #5

wants to merge 1 commit into from

Conversation

benjamin-hodgson
Copy link

Coders can define a void see_new_friend(ColorLabel friendship_color)
which will be called when a friend enters the room. You can switch on
the friendship_color to behave differently depending on the friend's
group.

  • Moved the ColorLabel enum into Jewelbots_src
  • Rewrote the loop in save_arduino_colors
  • Renamed some variables:
    • arduino_colors -> visible_friends
    • save_arduino_colors -> save_visible_friends
    • renamed locals in save_visible_friends

Coders can define a `void see_new_friend(ColorLabel friendship_color)`
which will be called when a friend enters the room. You can switch on
the friendship_color to behave differently depending on the friend's
group.

* Moved the ColorLabel enum into Jewelbots_src
* Rewrote the loop in save_arduino_colors
* Renamed some variables:
  * arduino_colors -> visible_friends
  * save_arduino_colors -> save_visible_friends
  * renamed locals in save_visible_friends
@benjamin-hodgson
Copy link
Author

@SaraJo, did you want to rename ColorLabel to ColorName while we're at it? It's backwards incompatible, someone might have mentioned ColorLabel by name in their code.

@benjamin-hodgson
Copy link
Author

ps you might wanna double-check this actually works, I think I got everything we did but might have missed something.

@SaraJo
Copy link
Member

SaraJo commented Dec 22, 2018

Awesome, looking at it this week, don't want to release right before holidays! Thanks for doing this!

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