Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }
Example #3
0
        /// <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; }
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureProvider"/> class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 public FeatureProvider(ConnectionProvider connection)
 {
     Connection = connection;
 }
Example #5
0
 /// <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);
 }
Example #6
0
 /// <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;
 }
Example #7
0
 /// <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);
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipePacket"/> class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 public PipePacket(ConnectionProvider connection)
     : base(connection)
 {
 }
Example #9
0
 /// <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);
 }
Example #10
0
 /// <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;
 }
Example #11
0
 /// <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));
 }
Example #12
0
 /// <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;
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Packet"/> class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 public Packet(ConnectionProvider connection)
 {
     ConnectionSource = connection;
 }
Example #14
0
 /// <summary>
 /// Set a Connection Source.
 /// </summary>
 public void SetConnectionProvider(ConnectionProvider connection)
 {
     connectionSource = connection;
 }