示例#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);
 }
示例#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);
 }
示例#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; }
        }
示例#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;
 }
示例#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);
 }
示例#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;
 }
示例#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);
 }
示例#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)
 {
 }
示例#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);
 }
示例#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;
 }
示例#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));
 }
示例#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;
 }
示例#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;
 }
示例#14
0
 /// <summary>
 /// Set a Connection Source.
 /// </summary>
 public void SetConnectionProvider(ConnectionProvider connection)
 {
     connectionSource = connection;
 }