Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LazyCreateWeGameMsgServer()

void Terraria.Social.WeGame.NetClientSocialModule.LazyCreateWeGameMsgServer ( )
inlineprivate

Definition at line 35 of file NetClientSocialModule.cs.

36 {
37 if (_msgServer == null)
38 {
39 _msgServer = new MessageDispatcherServer();
40 _msgServer.Init("WeGame.Terraria.Message.Server");
41 _msgServer.OnMessage += OnWegameMessage;
42 _msgServer.OnIPCClientAccess += OnIPCClientAccess;
43 CoreSocialModule.OnTick += _msgServer.Tick;
45 }
46 }

References Terraria.Social.WeGame.NetClientSocialModule._msgServer, Terraria.Social.WeGame.MessageDispatcherServer.Init(), Terraria.Social.WeGame.NetClientSocialModule.OnIPCClientAccess(), Terraria.Social.WeGame.NetClientSocialModule.OnWegameMessage(), Terraria.Social.WeGame.MessageDispatcherServer.Start(), and Terraria.Social.WeGame.MessageDispatcherServer.Tick().

Referenced by Terraria.Social.WeGame.NetClientSocialModule.LaunchLocalServer().