refactor(server/players): Take a different approach to multichar

This changes how multicharacter support is implemented entirely.

Instead there are now events for creating a new player & unloading a player. These should be called whenever a character is switched. Documentation will be added for `npwd:newPlayer` & `npwd:unloadPlayer`
This commit is contained in:
Taso committed 2021-04-18 15:38:50 -04:00
1 parent 2ec049ca12
commit 268bd4f4a4
11 files changed
+391 -377

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { NewTweet, Tweet, Profile } from '../../typings/twitter';
import { config } from './server';
import { reportTweetToDiscord } from './discord';
import { mainLogger } from './sv_logger';
import { generateProfileName, getDefaultProfileNames } from './players/sv_players';
import { generateProfileName, getDefaultProfileNames } from './players/player.service';
import { TwitterEvents } from '../../typings/twitter';
const twitterLogger = mainLogger.child({ module: 'twitter' });