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

◆ RegisterRailEvent()

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

Definition at line 310 of file NetClientSocialModule.cs.

311 {
312 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
313 //IL_004d: Unknown result type (might be due to invalid IL or missing references)
314 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
315 //IL_005f: Expected O, but got Unknown
316 RAILEventID[] array = (RAILEventID[])(object)new RAILEventID[7]
317 {
318 (RAILEventID)16001,
319 (RAILEventID)16002,
320 (RAILEventID)13503,
321 (RAILEventID)13501,
322 (RAILEventID)12003,
323 (RAILEventID)12002,
324 (RAILEventID)12010
325 };
326 foreach (RAILEventID val in array)
327 {
328 _callbackHelper.RegisterCallback(val, new RailEventCallBackHandler(OnRailEvent));
329 }
330 }
void OnRailEvent(RAILEventID id, EventBase data)

References Terraria.Social.WeGame.NetClientSocialModule._callbackHelper, System.array, and Terraria.Social.WeGame.NetClientSocialModule.OnRailEvent().

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