This file contains hidden or 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
| void OnStart() { | |
| AddUseItemCallback("", "staircasekey", "staircasedoor", "UsedKeyOnDoor", true); | |
| // Changed "func_shelf" to "SecretLever1Changed" and "SecretLever2Changed" respectively. | |
| // Each now points to a separate function. | |
| SetEntityConnectionStateChangeCallback("secret_lever_1", "SecretLever1Changed"); | |
| SetEntityConnectionStateChangeCallback("secret_lever_2", "SecretLever2Changed"); | |
| AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1); | |
| AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1); |
This file contains hidden or 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
| void OnStart() | |
| { | |
| AddUseItemCallback("", "staircasekey", "staircasedoor", "UsedKeyOnDoor", true); | |
| SetEntityConnectionStateChangeCallback("secret_lever_1", "func_shelf"); | |
| AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1); | |
| AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1); | |
| } | |
| void UsedKeyOnDoor(string &in staircasekey, string &in staircasedoor) | |
| { |
This file contains hidden or 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
| user_kwargs = { | |
| 'username': 'joeblogs', | |
| 'email': 'joeblogs@example.com', | |
| 'password': 'pass', | |
| } | |
| self.account, self.user = Account.objects.create_with_user( | |
| subdomain='jb', name='jb', user_kwargs=user_kwargs) |
This file contains hidden or 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
| from django.db import models | |
| class Account(models.Model): | |
| ... | |
| class Group(models.Model): | |
| name = models.CharField(max_length=100) | |
| permissions = models.ManyToManyField('appname.Permission') | |
NewerOlder