A class for triggering remote scene events.
コード例 #1
0
        public FreeMoneyTransaction(UUID from, UUID to, string sellersEmail, int amount, Scene scene, string description, InternalTransactionType internalType, EventManager.LandBuyArgs e)
        {
            From = from;
            InternalType = internalType;
            Description = description;
            Scene = scene;
            Amount = amount;
            SellersEmail = sellersEmail;
            To = to;
            ObjectID = UUID.Zero;
            E = e;

            // Generate a 128-bit Unique ID
            // Using the Crypto Random Generator (increased unguessability)
            byte[] randomBuf = new byte[16];
            RNGCryptoServiceProvider random = new RNGCryptoServiceProvider();
            random.GetBytes(randomBuf);
            Guid txID = new Guid(randomBuf);

            TxID = new UUID(txID);
        }