/// <summary> /// Initializes a new instance of the <see cref="Container"/> class. /// </summary> /// <param name="connectionSource">The connection source.</param> /// <param name="address">The address.</param> /// <param name="position">The position.</param> public Container(ConnectionProvider connectionSource, uint address, int position) : base(connectionSource) { Address = address; Index = position; SetMemory(connectionSource.Memory); }
/// <summary> /// Initializes a new instance of the <see cref="Pipe"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="name">The name.</param> public Pipe(ConnectionProvider connection, string name) { Connection = connection; Name = name; Buffer = new byte[1024]; pipe = new NamedPipeServerStream(name, PipeDirection.InOut, 1, PipeTransmissionMode.Message, PipeOptions.Asynchronous); pipe.BeginWaitForConnection(new AsyncCallback(BeginWaitForConnection), null); }
/// <summary> /// Initializes a new instance of the <see cref="CryptoManager"/> class. /// </summary> /// <param name="source">The source.</param> public CryptoManager(ConnectionProvider source) { ConnectionSource = source; if (source.Memory.Addresses.NumVersion >= 8.4M) { Xtea = new XTeaCheckSum(); } //else if (source.Memory.Addresses.NumVersion >= 8.0M) { // Xtea = new XTea(); //} else { AvoidCriptograph = true; } }
/// <summary> /// Initializes a new instance of the <see cref="FeatureProvider"/> class. /// </summary> /// <param name="connection">The connection.</param> public FeatureProvider(ConnectionProvider connection) { Connection = connection; }
/// <summary> /// Initializes a new instance of the <see cref="Creature"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="address">The address.</param> public Creature(ConnectionProvider connection, uint address) { Connection = connection; Initialize(address); }
/// <summary> /// Initializes a new instance of the <see cref="Slots"/> class. /// </summary> /// <param name="connection">The own connection.</param> public Inventory(ConnectionProvider connection) { Connetion = connection; }
/// <summary> /// Initializes a new instance of the <see cref="PipePacket"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="data">The data.</param> public PipePacket(ConnectionProvider connection, byte[] data) : this(connection) { this.ParseData(data); }
/// <summary> /// Initializes a new instance of the <see cref="PipePacket"/> class. /// </summary> /// <param name="connection">The connection.</param> public PipePacket(ConnectionProvider connection) : base(connection) { }
/// <summary> /// Initializes a new instance of the GraphicProvider class. /// </summary> /// <param name="connection">The client connection.</param> public GraphicsProvider(ConnectionProvider connection) { Connection = connection; LevelSpy = new LevelSpy(connection); NameSpy = new NameSpy(connection); }
/// <summary> /// Initializes a new instance of the <see cref="LevelSpy"/> class. /// </summary> /// <param name="connection">The connection.</param> public LevelSpy(ConnectionProvider connection) { this.Connection = connection; }
/// <summary> /// Initializes a new instance of the <see cref="Player"/> class. /// </summary> /// <param name="connection">The connection source.</param> public Player(ConnectionProvider connection) : base(connection, 0) { var battlelist = BattleList.Get(connection, new Range()); base.Initialize(battlelist.FindAddress(Id)); }
/// <summary> /// Initializes a new instance of the <see cref="Packet"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="data">The data.</param> public Packet(ConnectionProvider connection, byte[] data) { ConnectionSource = connection; Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="Packet"/> class. /// </summary> /// <param name="connection">The connection.</param> public Packet(ConnectionProvider connection) { ConnectionSource = connection; }
/// <summary> /// Set a Connection Source. /// </summary> public void SetConnectionProvider(ConnectionProvider connection) { connectionSource = connection; }