-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4157 from out-of-phaze/codequality/hook-removal
Replace a number of hooks with observation decls, remove deprecated hooks
- Loading branch information
Showing
21 changed files
with
138 additions
and
95 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Observer Pattern Implementation: Crate Sold | ||
// Registration type: /area | ||
// | ||
// Raised when: A crate is sold on the shuttle. | ||
// | ||
// Arguments that the called proc should expect: | ||
// /area/shuttle: The shuttle the crate was sold on. | ||
// /obj/structure/closet/crate/sold: The crate that was sold. | ||
|
||
/decl/observ/crate_sold | ||
name = "Crate Sold" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Observer Pattern Implementation: Cyborg Created | ||
* | ||
* Raised when: A cyborg is created. | ||
* | ||
* Arguments that the called proc should expect: | ||
* /mob/living/silicon/robot: The cyborg that was created. | ||
*/ | ||
/decl/observ/cyborg_created | ||
name = "Cyborg Created" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Observer Pattern Implementation: Debrained | ||
* | ||
* Raised when: A brainmob is created by the removal of a brain. | ||
* | ||
* Arguments that the called proc should expect: | ||
* /mob/living/brainmob: The brainmob that was created. | ||
* /obj/item/organ/internal/brain: The brain that was removed. | ||
* /mob/living/owner: The mob the brain was formerly installed in. | ||
*/ | ||
/decl/observ/debrain | ||
name = "Debrained" | ||
expected_type = /mob/living |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Observer Pattern Implementation: Employee ID Reassigned | ||
* | ||
* Raised when: A card's assignment is changed in the ID card modification program. | ||
* | ||
* Arguments that the called proc should expect: | ||
* /obj/item/card/id: The card that was reassigned. | ||
*/ | ||
/decl/observ/employee_id_reassigned | ||
name = "Employee ID Reassigned" | ||
|
||
// Observer Pattern Implementation: Employee ID Terminated | ||
// Registration type: /obj/item/card/id | ||
// | ||
// Raised when: A card is terminated in the ID card modification program. | ||
// | ||
// Arguments that the called proc should expect: | ||
// /area/shuttle: The shuttle the crate was sold on. | ||
// /obj/structure/closet/crate/sold: The crate that was sold. | ||
|
||
/decl/observ/employee_id_terminated | ||
name = "Employee ID Terminated" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
/** | ||
* Observer Pattern Implementation: Payroll Revoked | ||
* | ||
* Raised when: Someone's payroll is stolen at the Accounts terminal. | ||
* | ||
* Arguments that the called proc should expect: | ||
* /datum/money_account: The account whose payroll was revoked. | ||
*/ | ||
/decl/observ/revoke_payroll | ||
name = "Payroll Revoked" | ||
|
||
/** | ||
* Observer Pattern Implementation: Account Status Changed | ||
* | ||
* Raised when: Someone's account is suspended or unsuspended at the Accounts terminal. | ||
* | ||
* Arguments that the called proc should expect: | ||
* /datum/money_account: The account whose status was changed. | ||
*/ | ||
/decl/observ/change_account_status | ||
name = "Account Status Changed" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Observer Pattern Implementation: Player Latejoin | ||
// Registration type: /mob/living | ||
// | ||
// Raised when: A player joins the round after it has started. | ||
// | ||
// Arguments that the called proc should expect: | ||
// /mob/living/character: The mob that joined the round. | ||
// /datum/job/job: The job the mob joined as. | ||
|
||
/decl/observ/player_latejoin | ||
name = "Player Latejoin" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Observer Pattern Implementation: Submap Join | ||
// Registration type: /datum/submap | ||
// | ||
// Raised when: A mob joins on a submap | ||
// | ||
// Arguments that the called proc should expect: | ||
// /datum/submap/submap: The submap the mob joined. | ||
// /mob/joiner: The mob that joined the submap. | ||
// /datum/job/job: The job the mob joined as. | ||
|
||
/decl/observ/submap_join | ||
name = "Submap Joined" | ||
expected_type = /datum/submap |
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
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
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
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
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
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
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
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
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
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
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