Beispiel #1
0
 // Token: 0x060012D0 RID: 4816 RVA: 0x00020810 File Offset: 0x0001EA10
 public void SendJump(Vector3 position)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Vector3Proxy.Serialize(memoryStream, position);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(13, customOpParameters, true, 0, false);
         }
     }
 }
Beispiel #2
0
 // Token: 0x060012DE RID: 4830 RVA: 0x00020EF0 File Offset: 0x0001F0F0
 public void SendHitFeedback(int targetCmid, Vector3 force)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Int32Proxy.Serialize(memoryStream, targetCmid);
         Vector3Proxy.Serialize(memoryStream, force);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(27, customOpParameters, true, 0, false);
         }
     }
 }
Beispiel #3
0
 // Token: 0x060012CD RID: 4813 RVA: 0x000206A4 File Offset: 0x0001E8A4
 public void SendExplosionDamage(int target, byte slot, byte distance, Vector3 force)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Int32Proxy.Serialize(memoryStream, target);
         ByteProxy.Serialize(memoryStream, slot);
         ByteProxy.Serialize(memoryStream, distance);
         Vector3Proxy.Serialize(memoryStream, force);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(10, customOpParameters, true, 0, false);
         }
     }
 }
Beispiel #4
0
 // Token: 0x060012DC RID: 4828 RVA: 0x00020DE0 File Offset: 0x0001EFE0
 public void SendEmitQuickItem(Vector3 origin, Vector3 direction, int itemId, byte playerNumber, int projectileID)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Vector3Proxy.Serialize(memoryStream, origin);
         Vector3Proxy.Serialize(memoryStream, direction);
         Int32Proxy.Serialize(memoryStream, itemId);
         ByteProxy.Serialize(memoryStream, playerNumber);
         Int32Proxy.Serialize(memoryStream, projectileID);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(25, customOpParameters, true, 0, false);
         }
     }
 }
Beispiel #5
0
 // Token: 0x060012DB RID: 4827 RVA: 0x00020D4C File Offset: 0x0001EF4C
 public void SendEmitProjectile(Vector3 origin, Vector3 direction, byte slot, int projectileID, bool explode)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Vector3Proxy.Serialize(memoryStream, origin);
         Vector3Proxy.Serialize(memoryStream, direction);
         ByteProxy.Serialize(memoryStream, slot);
         Int32Proxy.Serialize(memoryStream, projectileID);
         BooleanProxy.Serialize(memoryStream, explode);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(24, customOpParameters, true, 0, false);
         }
     }
 }