コード例 #1
0
ファイル: Packet01Login.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet01Login(SinZSockets socket, int version, String username)
 {
     this.socket = socket;
     this.version = version;
     this.username = username;
     write();
 }
コード例 #2
0
 public Packet13PlayerPosition_Look(SinZSockets socket, double X, double Y, double Z, double stance, float yaw, float pitch, bool onGround)
 {
     this.socket = socket;
     this.X = X;
     this.Y = Y;
     this.Z = Z;
     this.stance = stance;
     this.yaw = yaw;
     this.pitch = pitch;
     this.onGround = onGround;
     write();
 }
コード例 #3
0
 public Packet23VehicleSpawn(SinZSockets socket)
 {
     EID = socket.readInt();
     type = socket.readByte();
     X = socket.readInt();
     Y = socket.readInt();
     Z = socket.readInt();
     throwerEID = socket.readInt();
     if (throwerEID > 0) {
         sX = socket.readShort();
         sY = socket.readShort();
         sZ = socket.readShort();
     }
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: SinZ163/Resolute-Bot
        static void Main(string[] args)
        {
            String username = "******";
            String address = "localhost";
            String sessionID = "";
            int port = 25565;
            TcpClient clientsocket = new TcpClient(address, port);
            NetworkStream stream = clientsocket.GetStream();
            SinZSockets socket = new SinZSockets(stream);

            SocketThread socketClass = new SocketThread();

            Thread socketThread = new Thread(() => socketClass.init(username, sessionID, address, port, socket));
            socketThread.Start();
        }
コード例 #5
0
ファイル: SocketThread.cs プロジェクト: SinZ163/Resolute-Bot
        public void init(String username, String sessionID, String address, int port, SinZSockets socket)
        {
            this.username = username;
            this.sessionID = sessionID;
            this.address = address;
            this.port = port;
            this.socket = socket;

            String handshakeMessage = username + ";" + address + ":" + port;
            Packet02Handshake handshake = new Packet02Handshake(socket, handshakeMessage);
            Console.Out.WriteLine("Send handshake");

            while (finished != true) {
                loop();
                Thread.Sleep(10);
            }
            socket.stream.Close();
            Console.In.ReadLine();
        }
コード例 #6
0
 public Packet201PlayerList(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #7
0
 public Packet40Metadata(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #8
0
ファイル: Packet03Chat.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet03Chat(SinZSockets socket, String message)
 {
     this.socket = socket;
     this.message = message;
     write();
 }
コード例 #9
0
ファイル: Packet103Slot.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet103Slot(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #10
0
ファイル: Packet03Chat.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet03Chat(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #11
0
 public Packet00KeepAlive(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #12
0
 public Packet54TileEntity(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #13
0
 public Packet33EntityLookandMove(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #14
0
 public Packet70GameState(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #15
0
ファイル: Slot.cs プロジェクト: SinZ163/Resolute-Bot
 public Slot(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #16
0
ファイル: Packet04Time.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet04Time(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #17
0
 public Packet50PreChunk(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #18
0
 public Packet35EntityHeadLook(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #19
0
 public Packet32EntityLook(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #20
0
ファイル: Packet255Kick.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet255Kick(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #21
0
 public Packet05EntityEquipment(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #22
0
ファイル: Packet01Login.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet01Login(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #23
0
 public Packet21DroppedItem(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #24
0
 public Packet06SpawnPosition(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #25
0
 public Packet25Painting(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #26
0
ファイル: Metadata.cs プロジェクト: SinZ163/Resolute-Bot
 public Metadata(SinZSockets socket)
 {
     this.socket = socket;
 }
コード例 #27
0
ファイル: Packet255Kick.cs プロジェクト: SinZ163/Resolute-Bot
 public Packet255Kick(SinZSockets socket, String reason)
 {
     this.socket = socket;
     this.reason = reason;
     write();
 }
コード例 #28
0
 public Packet61SoundEffect(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }
コード例 #29
0
 public Packet00KeepAlive(SinZSockets socket, int ID)
 {
     this.socket = socket;
     this.ID = ID;
     write();
 }
コード例 #30
0
 public Packet34EntityTeleport(SinZSockets socket)
 {
     this.socket = socket;
     read();
 }