Ejemplo n.º 1
0
 public async Task KaboomAsync(CommandContext Context)
 {
     var server = (Server)Context.Server;
     var player = Context.Player;
     await server.QueueBroadcastPacketAsync(new Explosion()
     {
         Position = player.Position + (10, 0, 0),
         Strength = 2.0f,
         Records  = new ExplosionRecord[1] {
             new ExplosionRecord {
                 X = 0, Y = 0, Z = 0
             }
         },
         PlayerMotion = new VectorF(-10f, 0f, 0f)
     });
Ejemplo n.º 2
0
 public void WriteExplosionRecord(ExplosionRecord record)
 {
     WriteByte(record.X);
     WriteByte(record.Y);
     WriteByte(record.Z);
 }