57 public static float SmoothStep(
float min,
float max,
float x)
62 public static double SmoothStep(
double min,
double max,
double x)
328 bool flag =
"" !=
"";
329 return "" +
" " +
" ";
383 string text2 = c.ToString();
452 Vector2 vector = ((float)
num2).ToRotationVector2();
761 int width =
tex.Width;
762 int height =
tex.Height;
883 Vector2 vector = r.BottomLeft();
1135 float num = vector.
Length();
1410 return (
text + text2 +
text3).ToLower();
1925 public static void DrawSplicedPanel(
SpriteBatch sb,
Texture2D texture,
int x,
int y,
int w,
int h,
int leftEnd,
int rightEnd,
int topEnd,
int bottomEnd,
Color c)
1927 int width = texture.
Width;
1929 int height = texture.
Height;
1960 int height = texture.
Height;
1971 int value = num.m_value;
1995 float num = vector.
Length();
2110 int value = num.m_value;
class f__AnonymousType0<< Count > j__TPar
Vector2 MeasureString(string text)
static PropertyDescriptorCollection GetProperties(Type componentType)
static CultureInfo InvariantCulture
static Microsoft.Xna.Framework.Vector2 screenPosition
static Microsoft.Xna.Framework.Vector2 DrawThickCursor(bool smart=false)
static void CreateDirectory(string path)
static bool Exists(string path, bool cloud=false)
ColorLerpMethod(object @object, IntPtr method)
Color Invoke(float percent)
IAsyncResult BeginInvoke(float percent, AsyncCallback callback, object @object)
Color EndInvoke(IAsyncResult result)
IAsyncResult BeginInvoke(int stage, [Out] float distanceCovered, [Out] Rectangle frame, [Out] Vector2 origin, [Out] Color color, AsyncCallback callback, object @object)
void EndInvoke([Out] float distanceCovered, [Out] Rectangle frame, [Out] Vector2 origin, [Out] Color color, IAsyncResult result)
LaserLineFraming(object @object, IntPtr method)
void Invoke(int stage, [Out] float distanceCovered, [Out] Rectangle frame, [Out] Vector2 origin, [Out] Color color)
TileActionAttempt(object @object, IntPtr method)
bool EndInvoke(IAsyncResult result)
bool Invoke(int x, int y)
IAsyncResult BeginInvoke(int x, int y, AsyncCallback callback, object @object)
static bool PlotTileArea(int x, int y, Utils.TileActionAttempt plot)
static Vector2 Vector2FromElipse(Vector2 angleVector, Vector2 elipseSizes)
static Vector2 ZW(this Vector4 vec)
static double Lerp(double value1, double value2, double amount)
static float Remap(float fromValue, float fromMin, float fromMax, float toMin, float toMax, bool clamped=true)
static Point16 ToTileCoordinates16(this Vector2D vec)
static Point plotInnerLineMinOffset
static Regex _substitutionRegex
static void TrimTextIfNeeded(string text, SpriteFont font, float scale, float maxWidth)
static float NextFloat(this UnifiedRandom random, FloatRange range)
static bool PlotTileLine(Vector2 start, Vector2 end, float width, Utils.TileActionAttempt plot)
static Vector2 RotatedByRandom(this Vector2 spinninpoint, double maxRadians)
static Vector2 TopRight(this Rectangle r)
static Vector3 XZW(this Vector4 vec)
static int[] CoinsSplit(long count)
static bool WithinRange(this Vector2 Origin, Vector2 Target, float MaxRange)
static Utils.ChaseResults GetChaseResults(Vector2 chaserPosition, float chaserSpeed, Vector2 runnerPosition, Vector2 runnerVelocity)
static int RandomInt(ulong seed, int max)
static void DrawBorderStringFourWay(SpriteBatch sb, SpriteFont font, string text, float x, float y, Color textColor, Color borderColor, Vector2 origin, float scale=1f)
static Vector2 DirectionTo(this Vector2 Origin, Vector2 Target)
static bool TryCreatingDirectory(string folderPath)
static Vector2 Center(this Rectangle r)
static bool IntersectsConeFastInaccurate(this Rectangle targetRect, Vector2 coneCenter, float coneLength, float coneRotation, float maximumAngle)
static Vector2 RandomVector2(UnifiedRandom random, float min, float max)
static int ToInt(this bool value)
static List< int > GetTrueIndexes(params bool[][] arrays)
static Vector2 Size(this Texture2D tex)
static string ReadEmbeddedResource(string path)
static string FormatWith(string original, object obj)
static float WrappedLerp(float value1, float value2, float percent)
static void DrawSplicedPanel(SpriteBatch sb, Texture2D texture, int x, int y, int w, int h, int leftEnd, int rightEnd, int topEnd, int bottomEnd, Color c)
static void WriteVector2(this BinaryWriter bb, Vector2 v)
static Vector2 rotateTowards(Vector2 currentPosition, Vector2 currentVelocity, Vector2 targetPosition, float maxChange)
static bool IsPowerOfTwo(int x)
static Rectangle Modified(this Rectangle r, int x, int y, int w, int h)
static bool< PlotLineOffset > g__PlotAtOffset(int xVal, int yVal, Utils.<>c__DisplayClass149_0 cpp2il__autoParamName__idx_3)
static void DrawRectForTilesInWorld(SpriteBatch spriteBatch, Rectangle rect, Color color)
static bool PressingShift(this KeyboardState kb)
static bool PlotLine(int x0, int y0, int x1, int y1, Utils.TileActionAttempt plot, bool jump=true)
static Color MultiplyRGB(this Color firstColor, Color secondColor)
static Vector2 NextVector2Circular(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight)
static Vector2D ToVector2D(this Point16 p)
static float RandomFloat(ulong seed)
static Vector2 NextVector2FromRectangle(this UnifiedRandom r, Rectangle rect)
static Vector2 ReadPackedVector2(this BinaryReader bb)
static int Count< T >(this T[] arr, T value)
static Vector2 NextVector2CircularEdge(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight)
static Rectangle Frame(this Texture2D tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0)
static Vector2 BottomLeft(this Rectangle r)
static bool SolveQuadratic(float a, float b, float c, [Out] float result1, [Out] float result2)
static string[] WordwrapString(string text, SpriteFont font, int maxWidth, int maxLines, [Out] int lineAmount)
static bool PlotLineOffsetTale(Vector2D start, Vector2D end, int length, double halfWidth, int x0, int y0, int x1, int y1, Utils.TileActionAttempt plot, bool jump=true)
static Vector2 OriginFlip(this Rectangle rect, Vector2 origin, SpriteEffects effects)
static void DrawInvBG(SpriteBatch sb, Rectangle R, [Optional] Color c)
static Vector2 BottomRight(this Rectangle r)
static Vector2D RandomVector2D(UnifiedRandom random, double min, double max)
static void PoofOfSmoke(Vector2 position)
static double GetLerpValue(double from, double to, double t, bool clamped=false)
static bool PlotTileTale(Vector2D start, Vector2D end, double width, Utils.TileActionAttempt plot)
static Utils.TileActionAttempt plotInnerCall
static bool deepCompare(this int[] firstArray, int[] secondArray)
static bool PlotTileLine(Vector2D start, Vector2D end, double width, Utils.TileActionAttempt plot)
static Point plotInnerLineMaxOffset
static bool PlotTileLineInner(int x, int y)
static Vector2 NextVector2Unit(this UnifiedRandom r, float startRotation=0f, float rotationRange=6.2831855f)
static int RandomConsecutive(double random, int odds)
static Color ReadRGB(this BinaryReader bb)
static string[] ConvertMonoArgsToDotNet(string[] brokenArgs)
static float AngleFrom(this Vector2 Origin, Vector2 Target)
static Vector2 ToRotationVector2(this float f)
static Vector2 Left(this Rectangle r)
static float Distance(this Rectangle r, Vector2 point)
static void WriteRGB(this BinaryWriter bb, Color c)
static float NextFloatDirection(this UnifiedRandom r)
static bool FloatIntersect(float r1StartX, float r1StartY, float r1Width, float r1Height, float r2StartX, float r2StartY, float r2Width, float r2Height)
static string Hex3(this Color color)
static T NextFromList< T >(this UnifiedRandom random, params T[] objs)
static float AngleTowards(this float curAngle, float targetAngle, float maxChange)
static Vector2 Round(Vector2 input)
static T NextFromCollection< T >(this UnifiedRandom random, List< T > objs)
static float GetLerpValue(float from, float to, float t, bool clamped=false)
static bool DoesFitInCone(Vector2 point, Vector2 coneCenter, float coneLength, float coneRotation, float maximumAngle)
static float Turn01ToCyclic010(float value)
static Rectangle OffsetSize(this Rectangle rect, int xSize, int ySize)
static Vector2 ClosestPointInRect(this Rectangle r, Vector2 point)
static Vector2 TopLeft(this Rectangle r)
static float DistanceSQ(this Vector2 Origin, Vector2 Target)
static bool RectangleLineCollision(Vector2 rectTopLeft, Vector2 rectBottomRight, Vector2 lineStart, Vector2 lineEnd)
static Vector2 Bottom(this Rectangle r)
static Vector2 Size(this Asset< Texture2D > tex)
static Dictionary< SpriteFont, float[]> charLengths
static double UnclampedSmoothStep(double min, double max, double x)
static bool PlotLineOffset(Vector2D start, Vector2D end, double halfWidth, int x0, int y0, int x1, int y1, Utils.TileActionAttempt plot, bool jump=true)
static Vector2 Floor(this Vector2 vec)
static Vector2 DirectionFrom(this Vector2 Origin, Vector2 Target)
static Vector2 DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static float SmoothStep(float min, float max, float x)
static double SmoothStep(double min, double max, double x)
static Dictionary< string, string > ParseArguements(string[] args)
static bool IndexInRange< T >(this T[] t, int index)
static void DrawRect(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color)
static float Distance(this Vector2 Origin, Vector2 Target)
static void DrawLine(SpriteBatch spriteBatch, Point start, Point end, Color color)
static float NextFloat(this UnifiedRandom r)
const ulong RANDOM_MULTIPLIER
static Vector2 RotatedBy(this Vector2 spinningpoint, double radians, [Optional] Vector2 center)
static void DrawRectangle(SpriteBatch sb, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width)
static Vector2 NextVector2Square(this UnifiedRandom r, float min, float max)
static Rectangle Frame(this Asset< Texture2D > tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0)
static int ModulusPositive(this int myInteger, int modulusNumber)
static bool PlotLine(Point16 p0, Point16 p1, Utils.TileActionAttempt plot, bool jump=true)
static bool HasNaNs(this Vector2 vec)
static int Height(this Asset< Texture2D > asset)
static Vector2 Right(this Rectangle r)
static Point16 ToTileCoordinates16(this Vector2 vec)
static Vector2 SafeNormalize(this Vector2 v, Vector2 defaultValue)
static void DrawSettingsPanel(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
static Color MultiplyRGBA(this Color firstColor, Color secondColor)
static long CoinsCount([Out] bool overFlowing, Item[] inv, params int[] ignoreSlots)
static Vector2 ReadVector2(this BinaryReader bb)
static float AngleTo(this Vector2 Origin, Vector2 Target)
static T Max< T >(params T[] args)
static Point ToTileCoordinates(this Vector2D vec)
static void DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width)
static void Swap< T >(T t1, T t2)
static void DrawPanel(Texture2D texture, int edgeWidth, int edgeShove, SpriteBatch spriteBatch, Vector2 position, float width, Color color)
static Vector2 ToVector2(this Point p)
static Color ColorLerp_BlackToWhite(float percent)
static Vector2D ToVector2D(this Point p)
static void DrawRect(SpriteBatch spriteBatch, Vector2 topLeft, Vector2 topRight, Vector2 bottomRight, Vector2 bottomLeft, Color color)
static Vector2 FactorAcceleration(Vector2 currentVelocity, float timeToInterception, Vector2 descendOfProjectile, int framesOfLenience)
static void DrawCursorSingle(SpriteBatch sb, Color color, float rot=float.NaN, float scale=1f, [Optional] Vector2 manualPosition, int cursorSlot=0, int specialMode=0)
static byte[] ToByteArray(this string str)
static int Width(this Asset< Texture2D > asset)
static T Clamp< T >(T value, T min, T max)
static Vector2 ToWorldCoordinates(this Point p, float autoAddX=8f, float autoAddY=8f)
static void PlotLineLength(int x0, int y0, int x1, int y1, int length, bool jump=true)
static string PrettifyPercentDisplay(float percent, string originalFormat)
static Vector2D RotatedBy(this Vector2D spinningpoint, double radians, [Optional] Vector2D center)
static Vector3 YZW(this Vector4 vec)
static float AngleLerp(this float curAngle, float targetAngle, float amount)
static Vector2 GetDayTimeAsDirectionIn24HClock()
static List< int > GetTrueIndexes(this bool[] array)
static Vector2 ToWorldCoordinates(this Point16 p, float autoAddX=8f, float autoAddY=8f)
static Vector2 ClosestPointOnLine(this Vector2 P, Vector2 A, Vector2 B)
static void OpenFolder(string folderPath)
static void DrawRectForTilesInWorld(SpriteBatch spriteBatch, Point start, Point end, Color color)
static Vector2 ToScreenPosition(this Vector2 worldPosition)
static float GetDayTimeAs24FloatStartingFromMidnight()
static T SelectRandom< T >(UnifiedRandom random, params T[] choices)
static float PingPongFrom01To010(float value)
static Vector2 Top(this Rectangle r)
static bool PressingControl(this KeyboardState kb)
static Point ToPoint(this Vector2D v)
static void DrawInvBG(SpriteBatch sb, float x, float y, float w, float h, [Optional] Color c)
static void WritePackedVector2(this BinaryWriter bb, Vector2 v)
static string Hex4(this Color color)
static Vector2 GetDayTimeAsDirectionIn24HClock(float timeFrom0To24)
static ulong RandomNextSeed(ulong seed)
static long CoinsCombineStacks([Out] bool overFlowing, params long[] coinCounts)
static void DrawRect(SpriteBatch spriteBatch, Rectangle rect, Color color)
static bool IntersectsConeSlowMoreAccurate(this Rectangle targetRect, Vector2 coneCenter, float coneLength, float coneRotation, float maximumAngle)
static bool Between(this Vector2 vec, Vector2 minimum, Vector2 maximum)
static R[] MapArray< R, T >(T[] array, Func< T, R > mapper)
static bool PlotLine(Point p0, Point p1, Utils.TileActionAttempt plot, bool jump=true)
static int Next(this UnifiedRandom random, IntRange range)
static void DrawLaser(SpriteBatch sb, Texture2D tex, Vector2 start, Vector2 end, Vector2 scale, Utils.LaserLineFraming framing)
static Vector2 DrawBorderStringBig(SpriteBatch spriteBatch, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Vector2 XY(this Vector4 vec)
static Vector2 RotateRandom(this Vector2 spinninpoint, double maxRadians)
static Point ToTileCoordinates(this Vector2 vec)
static float MultiLerp(float percent, params float[] floats)
static Vector2 ToVector2(this Point16 p)
static Vector2 Size(this Rectangle r)
static Utils.TileActionAttempt PlotTileLineInnerInstance
static int RandomInt(ulong seed, int min, int max)
static List< List< TextSnippet > > WordwrapStringSmart(string text, Color c, SpriteFont font, int maxWidth, int maxLines)
static void DrawInvBG(SpriteBatch sb, int x, int y, int w, int h, [Optional] Color c)
static float LineRectangleDistance(Rectangle rect, Vector2 lineStart, Vector2 lineEnd)
static Point ToPoint(this Vector2 v)
static Rectangle CenteredRectangle(Vector2 center, Vector2 size)
static int RandomNext(ulong seed, int bits)
static void ClampWithinWorld(int minX, int minY, int maxX, int maxY, bool lastValuesInclusiveToIteration=false, int fluffX=0, int fluffY=0)
static float ToRotation(this Vector2 v)
static float UnclampedSmoothStep(float min, float max, float x)
static int ToDirectionInt(this bool value)
static Vector2D ToVector2D(this Vector2 v)
static Vector2 MoveTowards(this Vector2 currentPosition, Vector2 targetPosition, float maxAmountAllowedToMove)
static void DrawSettings2Panel(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
static void DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color)
static bool InWorld(int x, int y, int fluff=0)
static void StartNewSearch()
Vector2 InterceptionPosition
Utils.TileActionAttempt plot
Utils.TileActionAttempt plot