mirror of
https://github.com/mleem97/gregWiki.git
synced 2026-04-11 03:29:19 +02:00
fix(docusaurus): update tagline for clarity and streamline navigation items
- Revised the tagline in `docusaurus.config.js` to better reflect the documentation's focus on Data Center Simulator mods. - Consolidated navigation items for Mods, Discord, Support, and GitHub into a more concise format for improved readability. This commit enhances the clarity of the documentation's purpose and improves the user interface of the navigation.
This commit is contained in:
116
docs/reference/greg-hooks-catalog.md
Normal file
116
docs/reference/greg-hooks-catalog.md
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
---
|
||||||
|
id: greg-hooks-catalog
|
||||||
|
title: greg hooks catalog
|
||||||
|
slug: /reference/greg-hooks-catalog
|
||||||
|
description: Auto-generated catalog of native pipeline hook strings from GregNativeEventHooks.
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- AUTO-GENERATED by tools/Generate-GregHookCatalog.ps1 - DO NOT EDIT BY HAND -->
|
||||||
|
|
||||||
|
# greg hooks catalog
|
||||||
|
|
||||||
|
This page is **generated** from `gregCore/framework/src/Sdk/GregNativeEventHooks.cs` and `EventIds` in `EventDispatcher.cs`.
|
||||||
|
|
||||||
|
**Generated:** 2026-04-10 02:07:09 UTC
|
||||||
|
|
||||||
|
## Hook string constants
|
||||||
|
|
||||||
|
| C# field | Hook string / expression |
|
||||||
|
|----------|----------------------------|
|
||||||
|
| ``NetworkBrokenSwitchAdded`` | ``greg.NETWORK.BrokenSwitchAdded`` |
|
||||||
|
| ``NetworkClearAllCables`` | ``greg.NETWORK.ClearAllCables`` |
|
||||||
|
| ``NetworkConnectionSpeedSet`` | ``greg.NETWORK.ConnectionSpeedSet`` |
|
||||||
|
| ``NetworkCreateNewCable`` | ``greg.NETWORK.CreateNewCable`` |
|
||||||
|
| ``NetworkInsertSfp`` | ``greg.NETWORK.InsertSFP`` |
|
||||||
|
| ``NetworkBrokenSwitchRemoved`` | ``greg.NETWORK.oveBrokenSwitchRemoved`` |
|
||||||
|
| ``NetworkPositionRemoved`` | ``greg.NETWORK.ovePositionRemoved`` |
|
||||||
|
| ``NetworkSfpRemoved`` | ``greg.NETWORK.oveSFPRemoved`` |
|
||||||
|
| ``PlayerCoinChanged`` | ``greg.PLAYER.CoinChanged`` |
|
||||||
|
| ``PlayerReputationChanged`` | ``greg.PLAYER.ReputationChanged`` |
|
||||||
|
| ``PlayerXpChanged`` | ``greg.PLAYER.XPChanged`` |
|
||||||
|
| ``RackButtonUnmountRack`` | ``greg.RACK.ButtonUnmountRack`` |
|
||||||
|
| ``ServerAppIdChanged`` | ``greg.SERVER.AppIDChanged`` |
|
||||||
|
| ``ServerCustomerChanged`` | ``greg.SERVER.CustomerChanged`` |
|
||||||
|
| ``ServerDeviceRepaired`` | ``greg.SERVER.DeviceRepaired`` |
|
||||||
|
| ``ServerItIsBroken`` | ``greg.SERVER.ItIsBroken`` |
|
||||||
|
| ``ServerPowerButton`` | ``greg.SERVER.PowerButton`` |
|
||||||
|
| ``ServerRegisterLink`` | ``greg.SERVER.RegisterLink`` |
|
||||||
|
| ``ServerInsertedInRack`` | ``greg.SERVER.ServerInsertedInRack`` |
|
||||||
|
| ``ServerUnregisterLink`` | ``greg.SERVER.UnregisterLink`` |
|
||||||
|
| ``SystemButtonBuyShopItem`` | ``greg.SYSTEM.ButtonBuyShopItem`` |
|
||||||
|
| ``SystemButtonBuyWall`` | ``greg.SYSTEM.ButtonBuyWall`` |
|
||||||
|
| ``SystemButtonCheckOut`` | ``greg.SYSTEM.ButtonCheckOut`` |
|
||||||
|
| ``SystemButtonClear`` | ``greg.SYSTEM.ButtonClear`` |
|
||||||
|
| ``SystemButtonConfirmFireEmployee`` | ``greg.SYSTEM.ButtonConfirmFireEmployee`` |
|
||||||
|
| ``SystemButtonConfirmHire`` | ``greg.SYSTEM.ButtonConfirmHire`` |
|
||||||
|
| ``SystemButtonCustomerChosen`` | ``greg.SYSTEM.ButtonCustomerChosen`` |
|
||||||
|
| ``SystemSpawnedItemRemoved`` | ``greg.SYSTEM.oveSpawnedItemRemoved`` |
|
||||||
|
| ``SystemSnapshotSaved`` | ``greg.SYSTEM.SnapshotSaved`` |
|
||||||
|
| ``UnknownNativeEvent`` | ``greg.SYSTEM.UnmappedNativeEvent`` |
|
||||||
|
| ``CustomerAppRequirementsFailed`` | ``GregHookName.Create(GregDomain.Customer, "AppRequirementsFailed")`` |
|
||||||
|
| ``CustomerAppRequirementsSatisfied`` | ``GregHookName.Create(GregDomain.Customer, "AppRequirementsSatisfied")`` |
|
||||||
|
| ``EmployeeCustomFired`` | ``GregHookName.Create(GregDomain.Employee, "CustomFired")`` |
|
||||||
|
| ``EmployeeCustomHired`` | ``GregHookName.Create(GregDomain.Employee, "CustomHired")`` |
|
||||||
|
| ``NetworkNetWatchDispatched`` | ``GregHookName.Create(GregDomain.Network, "NetWatchDispatched")`` |
|
||||||
|
| ``SystemAutoSaveRequested`` | ``GregHookName.Create(GregDomain.System, "AutoSaveRequested")`` |
|
||||||
|
| ``SystemGameDayAdvanced`` | ``GregHookName.Create(GregDomain.System, "GameDayAdvanced")`` |
|
||||||
|
| ``SystemGameLoaded`` | ``GregHookName.Create(GregDomain.System, "GameLoaded")`` |
|
||||||
|
| ``SystemGameSaved`` | ``GregHookName.Create(GregDomain.System, "GameSaved")`` |
|
||||||
|
| ``SystemHookBridgeInstalled`` | ``GregHookName.Create(GregDomain.System, "HookBridgeInstalled")`` |
|
||||||
|
| ``SystemHookBridgeTriggered`` | ``GregHookName.Create(GregDomain.System, "HookBridgeTriggered")`` |
|
||||||
|
|
||||||
|
## Event id to hook mapping
|
||||||
|
|
||||||
|
| Event id (uint) | EventIds name | GregNativeEventHooks field | Hook string |
|
||||||
|
|-----------------|---------------|----------------------------|-------------|
|
||||||
|
| 213 | `CableCleared` | `NetworkClearAllCables` | `greg.NETWORK.ClearAllCables` |
|
||||||
|
| 204 | `CableConnected` | `ServerRegisterLink` | `greg.SERVER.RegisterLink` |
|
||||||
|
| 211 | `CableCreated` | `NetworkCreateNewCable` | `greg.NETWORK.CreateNewCable` |
|
||||||
|
| 205 | `CableDisconnected` | `ServerUnregisterLink` | `greg.SERVER.UnregisterLink` |
|
||||||
|
| 212 | `CableRemoved` | `NetworkPositionRemoved` | `greg.NETWORK.ovePositionRemoved` |
|
||||||
|
| 215 | `CableSfpInserted` | `NetworkInsertSfp` | `greg.NETWORK.InsertSFP` |
|
||||||
|
| 216 | `CableSfpRemoved` | `NetworkSfpRemoved` | `greg.NETWORK.oveSFPRemoved` |
|
||||||
|
| 214 | `CableSpeedChanged` | `NetworkConnectionSpeedSet` | `greg.NETWORK.ConnectionSpeedSet` |
|
||||||
|
| 1001 | `CustomEmployeeFired` | `EmployeeCustomFired` | `GregHookName.Create(GregDomain.Employee, "CustomFired")` |
|
||||||
|
| 1000 | `CustomEmployeeHired` | `EmployeeCustomHired` | `GregHookName.Create(GregDomain.Employee, "CustomHired")` |
|
||||||
|
| 400 | `CustomerAccepted` | `SystemButtonCustomerChosen` | `greg.SYSTEM.ButtonCustomerChosen` |
|
||||||
|
| 401 | `CustomerSatisfied` | `CustomerAppRequirementsSatisfied` | `GregHookName.Create(GregDomain.Customer, "AppRequirementsSatisfied")` |
|
||||||
|
| 402 | `CustomerUnsatisfied` | `CustomerAppRequirementsFailed` | `GregHookName.Create(GregDomain.Customer, "AppRequirementsFailed")` |
|
||||||
|
| 300 | `DayEnded` | `SystemGameDayAdvanced` | `GregHookName.Create(GregDomain.System, "GameDayAdvanced")` |
|
||||||
|
| 601 | `EmployeeFired` | `SystemButtonConfirmFireEmployee` | `greg.SYSTEM.ButtonConfirmFireEmployee` |
|
||||||
|
| 600 | `EmployeeHired` | `SystemButtonConfirmHire` | `greg.SYSTEM.ButtonConfirmHire` |
|
||||||
|
| 702 | `GameAutoSaved` | `SystemAutoSaveRequested` | `GregHookName.Create(GregDomain.System, "AutoSaveRequested")` |
|
||||||
|
| 701 | `GameLoaded` | `SystemGameLoaded` | `GregHookName.Create(GregDomain.System, "GameLoaded")` |
|
||||||
|
| 700 | `GameSaved` | `SystemGameSaved` | `GregHookName.Create(GregDomain.System, "GameSaved")` |
|
||||||
|
| 1100 | `HookBridgeInstalled` | `SystemHookBridgeInstalled` | `GregHookName.Create(GregDomain.System, "HookBridgeInstalled")` |
|
||||||
|
| 1101 | `HookBridgeTriggered` | `SystemHookBridgeTriggered` | `GregHookName.Create(GregDomain.System, "HookBridgeTriggered")` |
|
||||||
|
| 100 | `MoneyChanged` | `PlayerCoinChanged` | `greg.PLAYER.CoinChanged` |
|
||||||
|
| 301 | `MonthEnded` | `SystemSnapshotSaved` | `greg.SYSTEM.SnapshotSaved` |
|
||||||
|
| 900 | `NetWatchDispatched` | `NetworkNetWatchDispatched` | `GregHookName.Create(GregDomain.Network, "NetWatchDispatched")` |
|
||||||
|
| 208 | `RackUnmounted` | `RackButtonUnmountRack` | `greg.RACK.ButtonUnmountRack` |
|
||||||
|
| 102 | `ReputationChanged` | `PlayerReputationChanged` | `greg.PLAYER.ReputationChanged` |
|
||||||
|
| 207 | `ServerAppChanged` | `ServerAppIdChanged` | `greg.SERVER.AppIDChanged` |
|
||||||
|
| 201 | `ServerBroken` | `ServerItIsBroken` | `greg.SERVER.ItIsBroken` |
|
||||||
|
| 206 | `ServerCustomerChanged` | `ServerCustomerChanged` | `greg.SERVER.CustomerChanged` |
|
||||||
|
| 203 | `ServerInstalled` | `ServerInsertedInRack` | `greg.SERVER.ServerInsertedInRack` |
|
||||||
|
| 200 | `ServerPowered` | `ServerPowerButton` | `greg.SERVER.PowerButton` |
|
||||||
|
| 202 | `ServerRepaired` | `ServerDeviceRepaired` | `greg.SERVER.DeviceRepaired` |
|
||||||
|
| 502 | `ShopCartCleared` | `SystemButtonClear` | `greg.SYSTEM.ButtonClear` |
|
||||||
|
| 500 | `ShopCheckout` | `SystemButtonCheckOut` | `greg.SYSTEM.ButtonCheckOut` |
|
||||||
|
| 501 | `ShopItemAdded` | `SystemButtonBuyShopItem` | `greg.SYSTEM.ButtonBuyShopItem` |
|
||||||
|
| 503 | `ShopItemRemoved` | `SystemSpawnedItemRemoved` | `greg.SYSTEM.oveSpawnedItemRemoved` |
|
||||||
|
| 209 | `SwitchBroken` | `NetworkBrokenSwitchAdded` | `greg.NETWORK.BrokenSwitchAdded` |
|
||||||
|
| 210 | `SwitchRepaired` | `NetworkBrokenSwitchRemoved` | `greg.NETWORK.oveBrokenSwitchRemoved` |
|
||||||
|
| 800 | `WallPurchased` | `SystemButtonBuyWall` | `greg.SYSTEM.ButtonBuyWall` |
|
||||||
|
| 101 | `XPChanged` | `PlayerXpChanged` | `greg.PLAYER.XPChanged` |
|
||||||
|
|
||||||
|
## Fallback
|
||||||
|
|
||||||
|
Unknown event ids resolve to ``greg.SYSTEM.UnmappedNativeEvent`` via ``GregNativeEventHooks.Resolve``.
|
||||||
|
|
||||||
|
## See also
|
||||||
|
|
||||||
|
- [greg hook naming](./greg-hook-naming.md)
|
||||||
|
- [EventIds source](https://github.com/mleem97/gregFramework/blob/main/gregCore/framework/src/ModLoader/EventDispatcher.cs)
|
||||||
|
- [GregNativeEventHooks source](https://github.com/mleem97/gregFramework/blob/main/gregCore/framework/src/Sdk/GregNativeEventHooks.cs)
|
||||||
|
- [Greg hooks & event runtime](/wiki/framework/greg-hooks-and-events)
|
||||||
@@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
title: 'gregFramework',
|
title: 'gregFramework',
|
||||||
tagline:
|
tagline: 'Documentation for Data Center Simulator mods: player guides, catalog, and author references.',
|
||||||
'Player-first help for Data Center mods; full technical docs for authors under Developers.',
|
|
||||||
favicon: 'img/logo.svg',
|
favicon: 'img/logo.svg',
|
||||||
url: 'https://frikadellental.de',
|
url: 'https://frikadellental.de',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
@@ -81,12 +80,7 @@ const config = {
|
|||||||
return redirectsToHere[existingPath];
|
return redirectsToHere[existingPath];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (existingPath.startsWith('/wiki/mods/') && existingPath.match(/fmf-(console-input-guard|gregify-employees|hex-label-mod|lang-compat-bridge|ui-replacement-mod)\/?$/)) {
|
||||||
existingPath.startsWith('/wiki/mods/') &&
|
|
||||||
existingPath.match(
|
|
||||||
/fmf-(console-input-guard|gregify-employees|hex-label-mod|lang-compat-bridge|ui-replacement-mod)\/?$/,
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
const slug = existingPath.replace('/wiki/mods/', '').replace(/\/$/, '');
|
const slug = existingPath.replace('/wiki/mods/', '').replace(/\/$/, '');
|
||||||
return [`/wiki/mods/extensions/${slug}`, `/wiki/mods/mods/${slug}`];
|
return [`/wiki/mods/extensions/${slug}`, `/wiki/mods/mods/${slug}`];
|
||||||
}
|
}
|
||||||
@@ -218,34 +212,10 @@ const config = {
|
|||||||
{to: '/mods', label: 'Mod catalog'},
|
{to: '/mods', label: 'Mod catalog'},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{to: '/mods', label: 'Mods', position: 'right', className: 'nav-right-icon nav-icon-only nav-link-mods', 'aria-label': 'Mods'},
|
||||||
to: '/mods',
|
{href: 'https://discord.gg/greg', label: 'Discord', position: 'right', className: 'nav-right-icon nav-icon-only nav-link-discord', 'aria-label': 'Discord'},
|
||||||
label: 'Mods',
|
{href: 'https://github.com/mleem97/gregFramework/issues', label: 'Support', position: 'right', className: 'nav-right-icon nav-icon-only nav-link-support', 'aria-label': 'Support'},
|
||||||
position: 'right',
|
{href: 'https://github.com/mleem97/gregFramework', label: 'GitHub', position: 'right', className: 'nav-right-icon nav-icon-only nav-link-github', 'aria-label': 'GitHub'},
|
||||||
className: 'nav-right-icon nav-icon-only nav-link-mods',
|
|
||||||
'aria-label': 'Mods',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: 'https://discord.gg/greg',
|
|
||||||
label: 'Discord',
|
|
||||||
position: 'right',
|
|
||||||
className: 'nav-right-icon nav-icon-only nav-link-discord',
|
|
||||||
'aria-label': 'Discord',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: 'https://github.com/mleem97/gregFramework/issues',
|
|
||||||
label: 'Support',
|
|
||||||
position: 'right',
|
|
||||||
className: 'nav-right-icon nav-icon-only nav-link-support',
|
|
||||||
'aria-label': 'Support',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: 'https://github.com/mleem97/gregFramework',
|
|
||||||
label: 'GitHub',
|
|
||||||
position: 'right',
|
|
||||||
className: 'nav-right-icon nav-icon-only nav-link-github',
|
|
||||||
'aria-label': 'GitHub',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
@@ -286,3 +256,4 @@ const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user