Ejemplo n.º 1
0
 static HookResult OnSendData(
     ref int bufferId,
     ref int msgType,
     ref int remoteClient,
     ref int ignoreClient,
     ref Terraria.Localization.NetworkText text,
     ref int number,
     ref float number2,
     ref float number3,
     ref float number4,
     ref int number5,
     ref int number6,
     ref int number7
     )
 {
     if (_hookManager.InvokeNetSendData
         (
             ref msgType,
             ref remoteClient,
             ref ignoreClient,
             ref text,
             ref number,
             ref number2,
             ref number3,
             ref number4,
             ref number5,
             ref number6,
             ref number7
         ))
     {
         return(HookResult.Cancel);
     }
     return(HookResult.Continue);
 }
Ejemplo n.º 2
0
 public NetworkText ToNetworkText()
 {
     return(NetworkText.FromKey(this.Key));
 }
Ejemplo n.º 3
0
 public NetworkText ToNetworkText(params object[] substitutions)
 {
     return(NetworkText.FromKey(this.Key, substitutions));
 }
Ejemplo n.º 4
0
 // Token: 0x06000CE6 RID: 3302 RVA: 0x003DBC64 File Offset: 0x003D9E64
 public NetworkText ToNetworkText()
 {
     return(NetworkText.FromKey(this.Key, new object[0]));
 }