How lotus-au/lotuscontinued works
Project Lotus is a host-capable Among Us gameplay mod that adds custom roles, game modes, networked behavior, and client-facing features. The principal workflow is lobby/game lifecycle handling, selecting a mode and assigning roles, then synchronizing player state and presenting role-specific play and results. Separate branches provide chat commands and templates, player history/statistics, options, add-ons, and lobby networking. Edges are limited to relationships visible in the supplied excerpts or source index; several documented capabilities have no sampled call path, so their links are omitted or marked unverified.
Main entry points: ProjectLotus.cs Lotus plugin · Game.cs Match lifecycle · GameModeManager.cs Mode selection · Players.cs Player state
Components 26
Game lifecycle
- Lotus plugin
ProjectLotus.cs - Match lifecycle
src/API/Odyssey/Game.cs - Game event patches
src/Patches - Reactive hooks
src/API/Reactive/Hooks.cs
Modes and roles
- Mode selection
src/GameModes/GameModeManager.cs - Game mode rules
src/GameModes - Global role registry
src/Managers/GlobalRoleManager.cs - Role framework
src/Roles/AbstractBaseRole.cs - Role behavior
src/Roles/CustomRole.cs - Mode role managers
src/Roles/Managers/RoleManager.cs - Player state
src/API/Player/Players.cs
Player experience
- Name model API
src/GUI/Name/Interfaces/INameModel.cs - Game assets
src/GUI/LotusAssets.cs - Chat commands
src/Chat - Command templates
src/Managers/Templates/TemplateManager.cs - Gameplay options
src/Options/GeneralOptions.cs - Admin options
src/Options/General/AdminOptions.cs
Network and services
- Mod RPC calls
src/RPC/ModCalls.cs - Add-on loading
src/Addons/AddonManager.cs - Lobby networking
src/Network/ConnectionManager.cs - Mod constants
src/ModConstants.cs
Persistence and records
- Plugin data manager
src/Managers/PluginDataManager.cs - Player statistics
src/API/Stats/DefaultStatisticManager.cs - Match history
src/Managers/History - Logging
src/Logging/DevLogger.cs
Other components
- Host player
Connections 31
- Host player → Lotus plugin: runs host mod
- Lotus plugin → Mode selection: registers modes
ProjectLotus.cs - Lotus plugin → Add-on loading: imports add-ons
ProjectLotus.cs - Lotus plugin → Plugin data manager: initializes data
src/Managers/PluginDataManager.cs - Match lifecycle → Player state: reads players
src/API/Odyssey/Game.cs - Match lifecycle → Mode selection: starts selected mode
src/API/Odyssey/Game.cs - Match lifecycle → Reactive hooks: propagates lifecycle
src/API/Odyssey/Game.cs - Match lifecycle → Mod RPC calls: sends state RPC
src/API/Odyssey/Game.cs - Match lifecycle → Name model API: creates name models
src/API/Odyssey/Game.cs - Game event patches → Match lifecycle: drives lifecycle
src/Patches/GameStartManagerPatch.cs - Game event patches → Reactive hooks: raises game events
- Mode selection → Game mode rules: registers modes
src/GameModes/GameModeManager.cs - Mode selection → Gameplay options: registers mode options
src/GameModes/GameModeManager.cs - Mode selection → Player state: announces mode
src/GameModes/GameModeManager.cs - Global role registry → Role behavior: registers roles
src/Managers/GlobalRoleManager.cs - Role framework → Role behavior: provides role base
src/Roles/AbstractBaseRole.cs - Mode role managers → Global role registry: uses global registry
src/GameModes/Normal/Standard/NormalStandardRoleManager.cs - Player state → Name model API: renders player names
src/API/Player/Players.cs - Command templates → Reactive hooks: raises command hook
src/Managers/Templates/TemplateManager.cs - Command templates → Player state: sends template messages
src/Managers/Templates/TemplateManager.cs - Plugin data manager → Command templates: loads template file
src/Managers/PluginDataManager.cs - Plugin data manager → Player statistics: initializes statistics
src/API/Stats/DefaultStatisticManager.cs - Player statistics → Reactive hooks: subscribes to events
src/API/Stats/DefaultStatisticManager.cs - Player statistics → Plugin data manager: persists through manager
src/API/Stats/DefaultStatisticManager.cs - Logging → Reactive hooks: binds game join
- Logging → Game assets: loads notification icon
- Lotus plugin → Mod constants: uses configuration
- Lotus plugin → Lobby networking: connects lobby services
- Lotus plugin → Chat commands: enables commands
- Gameplay options → Admin options: includes admin settings
src/Options/GeneralOptions.cs - Match history → Player state: records player events