Beispiel #1
0
            /// <summary>
            /// Create a PowerCutAreaGimmickLocator with random values.
            /// </summary>
            /// <param name="randomFloat">Function to generate a random float.</param>
            /// <returns>The generated locator.</returns>
            private static PowerCutAreaGimmickLocator CreateLocator(RandomFloat randomFloat)
            {
                var position = new Vector4(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var rotation = new Quaternion(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var locator  = new PowerCutAreaGimmickLocator(position, rotation);

                return(locator);
            }
Beispiel #2
0
            /// <summary>
            /// Create a NamedGimmickLocator with random values.
            /// </summary>
            /// <param name="randomFloat">Function to generate a random float.</param>
            /// <returns>The generated locator.</returns>
            private static NamedGimmickLocator CreateLocator(RandomFloat randomFloat)
            {
                var position    = new Vector4(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var rotation    = new Quaternion(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var locatorName = 424242u;
                var dataSetName = 191919u;
                var locator     = new NamedGimmickLocator(position, rotation, locatorName, dataSetName);

                return(locator);
            }
Beispiel #3
0
            /// <summary>
            /// Create a ScaledGimmickLocator with random values.
            /// </summary>
            /// <param name="randomFloat">Function to generate a random float.</param>
            /// <returns>The generated locator.</returns>
            private static ScaledGimmickLocator CreateLocator(RandomFloat randomFloat)
            {
                var position    = new Vector4(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var rotation    = new Quaternion(randomFloat(), randomFloat(), randomFloat(), randomFloat());
                var scale       = new WideVector3(randomFloat(), randomFloat(), randomFloat(), 42, 19);
                var locatorName = 424242u;
                var dataSetName = 191919u;
                var locator     = new ScaledGimmickLocator(position, rotation, scale, locatorName, dataSetName);

                return(locator);
            }