Example #1
0
    public static Packet_Client FillArea(int startx, int starty, int startz, int endx, int endy, int endz, int blockType, int ActiveMaterial)
    {
        Packet_ClientFillArea p = new Packet_ClientFillArea();
        {
            p.X1           = startx;
            p.Y1           = starty;
            p.Z1           = startz;
            p.X2           = endx;
            p.Y2           = endy;
            p.Z2           = endz;
            p.BlockType    = blockType;
            p.MaterialSlot = ActiveMaterial;
        }
        Packet_Client pp = new Packet_Client();

        pp.Id       = Packet_ClientIdEnum.FillArea;
        pp.FillArea = p;
        return(pp);
    }
Example #2
0
 public static Packet_Client FillArea(int startx, int starty, int startz, int endx, int endy, int endz, int blockType, int ActiveMaterial)
 {
     Packet_ClientFillArea p = new Packet_ClientFillArea();
     {
         p.X1 = startx;
         p.Y1 = starty;
         p.Z1 = startz;
         p.X2 = endx;
         p.Y2 = endy;
         p.Z2 = endz;
         p.BlockType = blockType;
         p.MaterialSlot = ActiveMaterial;
     }
     Packet_Client pp = new Packet_Client();
     pp.Id = Packet_ClientIdEnum.FillArea;
     pp.FillArea = p;
     return pp;
 }