Created
February 4, 2021 03:06
-
-
Save jcmaslan/930a05d1366c2038d5da790de5ac433d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(this.event_type) { | |
case 0: | |
// We treat all subtypes as the same currently | |
return "entry.unlocked"; | |
case 4: | |
switch(this.event_subtype) { | |
case 8: | |
case 210: | |
case 211: | |
return "entry.forcedopen"; | |
case 10: | |
case 212: | |
case 213: | |
return "entry.ajar.started"; | |
default: | |
break; | |
} | |
break; | |
default: | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment