forked from latticexyz/mud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
800 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.24; | ||
|
||
import { ISystemHook } from "./ISystemHook.sol"; | ||
|
||
/** | ||
* @title IOptionalSystemHook | ||
* @dev Interface defining optional hooks for external functionality. | ||
* Provides pre and post hooks that can be triggered before and after a system call respectively. | ||
* This interface adheres to the ERC-165 standard for determining interface support. | ||
*/ | ||
interface IOptionalSystemHook is ISystemHook { | ||
/** | ||
* @notice Executes when a system hook is registered by the user. | ||
* @dev Provides the ability to add custom logic or checks when a system hook is registered. | ||
*/ | ||
function onRegisterHook() external; | ||
|
||
/** | ||
* @notice Executes when a system hook is unregistered by the user. | ||
* @dev Provides the ability to add custom logic or checks when a system hook is unregistered. | ||
*/ | ||
function onUnregisterHook() external; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/world/src/codegen/interfaces/IExtendedWorldRegistrationSystem.sol
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.