tModLoader v2023.01
A mod to make and play Terraria mods
|
This is the complete list of members for Terraria.Utils, including all inherited members.
AngleFrom(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
AngleLerp(this float curAngle, float targetAngle, float amount) (defined in Terraria.Utils) | Terraria.Utils | static |
AngleTo(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
AngleTowards(this float curAngle, float targetAngle, float maxChange) (defined in Terraria.Utils) | Terraria.Utils | static |
Between(this Vector2 vec, Vector2 minimum, Vector2 maximum) (defined in Terraria.Utils) | Terraria.Utils | static |
Bottom(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
BottomLeft(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
BottomRight(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
Center(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
CenteredRectangle(Vector2 center, Vector2 size) (defined in Terraria.Utils) | Terraria.Utils | static |
charLengths (defined in Terraria.Utils) | Terraria.Utils | static |
Clamp< T >(T value, T min, T max) (defined in Terraria.Utils) | Terraria.Utils | static |
ClampWithinWorld(ref int minX, ref int minY, ref int maxX, ref int maxY, bool lastValuesInclusiveToIteration=false, int fluffX=0, int fluffY=0) (defined in Terraria.Utils) | Terraria.Utils | static |
ClosestPointInRect(this Rectangle r, Vector2 point) (defined in Terraria.Utils) | Terraria.Utils | static |
ClosestPointOnLine(this Vector2 P, Vector2 A, Vector2 B) (defined in Terraria.Utils) | Terraria.Utils | static |
CoinsCombineStacks(out bool overFlowing, params long[] coinCounts) (defined in Terraria.Utils) | Terraria.Utils | static |
CoinsCount(out bool overFlowing, Item[] inv, params int[] ignoreSlots) (defined in Terraria.Utils) | Terraria.Utils | static |
CoinsSplit(long count) (defined in Terraria.Utils) | Terraria.Utils | static |
ColorLerp_BlackToWhite(float percent) (defined in Terraria.Utils) | Terraria.Utils | static |
ColorLerpMethod(float percent) (defined in Terraria.Utils) | Terraria.Utils | |
ConvertMonoArgsToDotNet(string[] brokenArgs) (defined in Terraria.Utils) | Terraria.Utils | static |
deepCompare(this int[] firstArray, int[] secondArray) (defined in Terraria.Utils) | Terraria.Utils | static |
DirectionFrom(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
DirectionTo(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
Distance(this Rectangle r, Vector2 point) (defined in Terraria.Utils) | Terraria.Utils | static |
Distance(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
DistanceSQ(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawBorderStringBig(SpriteBatch spriteBatch, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawBorderStringFourWay(SpriteBatch sb, DynamicSpriteFont font, string text, float x, float y, Color textColor, Color borderColor, Vector2 origin, float scale=1f) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawCursorSingle(SpriteBatch sb, Color color, float rot=float.NaN, float scale=1f, Vector2 manualPosition=default(Vector2), int cursorSlot=0, int specialMode=0) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawInvBG(SpriteBatch sb, Rectangle R, Color c=default(Color)) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawInvBG(SpriteBatch sb, float x, float y, float w, float h, Color c=default(Color)) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawInvBG(SpriteBatch sb, int x, int y, int w, int h, Color c=default(Color)) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawLaser(SpriteBatch sb, Texture2D tex, Vector2 start, Vector2 end, Vector2 scale, LaserLineFraming framing) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawLine(SpriteBatch spriteBatch, Point start, Point end, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawPanel(Texture2D texture, int edgeWidth, int edgeShove, SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRect(SpriteBatch spriteBatch, Rectangle rect, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRect(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRect(SpriteBatch spriteBatch, Vector2 topLeft, Vector2 topRight, Vector2 bottomRight, Vector2 bottomLeft, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRectangle(SpriteBatch sb, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRectForTilesInWorld(SpriteBatch spriteBatch, Rectangle rect, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawRectForTilesInWorld(SpriteBatch spriteBatch, Point start, Point end, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawSettings2Panel(SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawSettingsPanel(SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
DrawSplicedPanel(SpriteBatch sb, Texture2D texture, int x, int y, int w, int h, int leftEnd, int rightEnd, int topEnd, int bottomEnd, Color c) (defined in Terraria.Utils) | Terraria.Utils | static |
FloatIntersect(float r1StartX, float r1StartY, float r1Width, float r1Height, float r2StartX, float r2StartY, float r2Width, float r2Height) (defined in Terraria.Utils) | Terraria.Utils | static |
Floor(this Vector2 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
FormatWith(string original, object obj) (defined in Terraria.Utils) | Terraria.Utils | static |
Frame(this Asset< Texture2D > tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0) (defined in Terraria.Utils) | Terraria.Utils | static |
Frame(this Texture2D tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0) (defined in Terraria.Utils) | Terraria.Utils | static |
GetDayTimeAs24FloatStartingFromMidnight() (defined in Terraria.Utils) | Terraria.Utils | static |
GetDayTimeAsDirectionIn24HClock() (defined in Terraria.Utils) | Terraria.Utils | static |
GetDayTimeAsDirectionIn24HClock(float timeFrom0To24) (defined in Terraria.Utils) | Terraria.Utils | static |
GetLerpValue(float from, float to, float t, bool clamped=false) (defined in Terraria.Utils) | Terraria.Utils | static |
GetLerpValue(double from, double to, double t, bool clamped=false) (defined in Terraria.Utils) | Terraria.Utils | static |
GetTrueIndexes(this bool[] array) (defined in Terraria.Utils) | Terraria.Utils | static |
GetTrueIndexes(params bool[][] arrays) (defined in Terraria.Utils) | Terraria.Utils | static |
HasNaNs(this Vector2 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
Height(this Asset< Texture2D > asset) (defined in Terraria.Utils) | Terraria.Utils | static |
Hex3(this Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
Hex4(this Color color) (defined in Terraria.Utils) | Terraria.Utils | static |
IndexInRange< T >(this T[] t, int index) (defined in Terraria.Utils) | Terraria.Utils | static |
IndexInRange< T >(this List< T > t, int index) (defined in Terraria.Utils) | Terraria.Utils | static |
IsPowerOfTwo(int x) (defined in Terraria.Utils) | Terraria.Utils | static |
LaserLineFraming(int stage, Vector2 currentPosition, float distanceLeft, Rectangle lastFrame, out float distanceCovered, out Rectangle frame, out Vector2 origin, out Color color) (defined in Terraria.Utils) | Terraria.Utils | |
Left(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
LogAndConsoleErrorMessage(string message) (defined in Terraria.Utils) | Terraria.Utils | static |
LogAndConsoleInfoMessage(string message) (defined in Terraria.Utils) | Terraria.Utils | static |
MajorMinor(this Version v) (defined in Terraria.Utils) | Terraria.Utils | static |
MajorMinorBuild(this Version v) (defined in Terraria.Utils) | Terraria.Utils | static |
Max< T >(params T[] args) (defined in Terraria.Utils) | Terraria.Utils | static |
MaxCoins (defined in Terraria.Utils) | Terraria.Utils | static |
Modified(this Rectangle r, int x, int y, int w, int h) (defined in Terraria.Utils) | Terraria.Utils | static |
ModulusPositive(this int myInteger, int modulusNumber) (defined in Terraria.Utils) | Terraria.Utils | static |
MoveTowards(this Vector2 currentPosition, Vector2 targetPosition, float maxAmountAllowedToMove) (defined in Terraria.Utils) | Terraria.Utils | static |
MultiLerp(float percent, params float[] floats) (defined in Terraria.Utils) | Terraria.Utils | static |
MultiplyRGB(this Color firstColor, Color secondColor) (defined in Terraria.Utils) | Terraria.Utils | static |
MultiplyRGBA(this Color firstColor, Color secondColor) (defined in Terraria.Utils) | Terraria.Utils | static |
Next(this UnifiedRandom random, IntRange range) (defined in Terraria.Utils) | Terraria.Utils | static |
Next< T >(this UnifiedRandom r, T[] array) | Terraria.Utils | static |
Next< T >(this UnifiedRandom r, IList< T > list) | Terraria.Utils | static |
NextBool(this UnifiedRandom r) | Terraria.Utils | static |
NextBool(this UnifiedRandom r, int consequent) | Terraria.Utils | static |
NextBool(this UnifiedRandom r, int antecedent, int consequent) | Terraria.Utils | static |
NextEnum< T >(this T src) (defined in Terraria.Utils) | Terraria.Utils | static |
NextFloat(this UnifiedRandom r) | Terraria.Utils | static |
NextFloat(this UnifiedRandom random, FloatRange range) (defined in Terraria.Utils) | Terraria.Utils | static |
NextFloat(this UnifiedRandom r, float maxValue) | Terraria.Utils | static |
NextFloat(this UnifiedRandom r, float minValue, float maxValue) | Terraria.Utils | static |
NextFloatDirection(this UnifiedRandom r) (defined in Terraria.Utils) | Terraria.Utils | static |
NextFromCollection< T >(this UnifiedRandom random, List< T > objs) (defined in Terraria.Utils) | Terraria.Utils | static |
NextFromList< T >(this UnifiedRandom random, params T[] objs) (defined in Terraria.Utils) | Terraria.Utils | static |
NextVector2Circular(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight) (defined in Terraria.Utils) | Terraria.Utils | static |
NextVector2CircularEdge(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight) (defined in Terraria.Utils) | Terraria.Utils | static |
NextVector2FromRectangle(this UnifiedRandom r, Rectangle rect) (defined in Terraria.Utils) | Terraria.Utils | static |
NextVector2Square(this UnifiedRandom r, float min, float max) (defined in Terraria.Utils) | Terraria.Utils | static |
NextVector2Unit(this UnifiedRandom r, float startRotation=0f, float rotationRange=(float) Math.PI *2f) (defined in Terraria.Utils) | Terraria.Utils | static |
OffsetSize(this Rectangle rect, int xSize, int ySize) (defined in Terraria.Utils) | Terraria.Utils | static |
OpenFolder(string folderPath) (defined in Terraria.Utils) | Terraria.Utils | static |
OpenToURL(string url) (defined in Terraria.Utils) | Terraria.Utils | static |
OriginFlip(this Rectangle rect, Vector2 origin, SpriteEffects effects) (defined in Terraria.Utils) | Terraria.Utils | static |
ParseArguements(string[] args) (defined in Terraria.Utils) | Terraria.Utils | static |
PingPongFrom01To010(float value) (defined in Terraria.Utils) | Terraria.Utils | static |
PlotLine(Point16 p0, Point16 p1, TileActionAttempt plot, bool jump=true) (defined in Terraria.Utils) | Terraria.Utils | static |
PlotLine(Point p0, Point p1, TileActionAttempt plot, bool jump=true) (defined in Terraria.Utils) | Terraria.Utils | static |
PlotTileArea(int x, int y, TileActionAttempt plot) (defined in Terraria.Utils) | Terraria.Utils | static |
PlotTileLine(Vector2 start, Vector2 end, float width, TileActionAttempt plot) (defined in Terraria.Utils) | Terraria.Utils | static |
PlotTileTale(Vector2 start, Vector2 end, float width, TileActionAttempt plot) (defined in Terraria.Utils) | Terraria.Utils | static |
PoofOfSmoke(Vector2 position) (defined in Terraria.Utils) | Terraria.Utils | static |
PressingControl(this KeyboardState kb) (defined in Terraria.Utils) | Terraria.Utils | static |
PressingShift(this KeyboardState kb) (defined in Terraria.Utils) | Terraria.Utils | static |
PrettifyPercentDisplay(float percent, string originalFormat) (defined in Terraria.Utils) | Terraria.Utils | static |
PreviousEnum< T >(this T src) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomConsecutive(double random, int odds) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomFloat(ref ulong seed) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomInt(ref ulong seed, int max) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomInt(ref ulong seed, int min, int max) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomNext(ref ulong seed, int bits) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomNextSeed(ulong seed) (defined in Terraria.Utils) | Terraria.Utils | static |
RandomVector2(UnifiedRandom random, float min, float max) (defined in Terraria.Utils) | Terraria.Utils | static |
ReadEmbeddedResource(string path) (defined in Terraria.Utils) | Terraria.Utils | static |
ReadPackedVector2(this BinaryReader bb) (defined in Terraria.Utils) | Terraria.Utils | static |
ReadRGB(this BinaryReader bb) (defined in Terraria.Utils) | Terraria.Utils | static |
ReadVector2(this BinaryReader bb) (defined in Terraria.Utils) | Terraria.Utils | static |
ReceiveBitArray(int BitArrLength, BinaryReader reader) | Terraria.Utils | static |
RectangleLineCollision(Vector2 rectTopLeft, Vector2 rectBottomRight, Vector2 lineStart, Vector2 lineEnd) (defined in Terraria.Utils) | Terraria.Utils | static |
Remap(float fromValue, float fromMin, float fromMax, float toMin, float toMax, bool clamped=true) (defined in Terraria.Utils) | Terraria.Utils | static |
Repeat(int value, int length) (defined in Terraria.Utils) | Terraria.Utils | static |
Right(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
RotatedBy(this Vector2 spinningpoint, double radians, Vector2 center=default(Vector2)) (defined in Terraria.Utils) | Terraria.Utils | static |
RotatedByRandom(this Vector2 spinninpoint, double maxRadians) (defined in Terraria.Utils) | Terraria.Utils | static |
RotateRandom(this Vector2 spinninpoint, double maxRadians) (defined in Terraria.Utils) | Terraria.Utils | static |
rotateTowards(Vector2 currentPosition, Vector2 currentVelocity, Vector2 targetPosition, float maxChange) (defined in Terraria.Utils) | Terraria.Utils | static |
Round(Vector2 input) (defined in Terraria.Utils) | Terraria.Utils | static |
SafeNormalize(this Vector2 v, Vector2 defaultValue) (defined in Terraria.Utils) | Terraria.Utils | static |
SelectRandom< T >(UnifiedRandom random, params T[] choices) (defined in Terraria.Utils) | Terraria.Utils | static |
SendBitArray(BitArray arr, BinaryWriter writer) | Terraria.Utils | static |
ShowFancyErrorMessage(string message, int returnToMenu) (defined in Terraria.Utils) | Terraria.Utils | static |
Size(this Asset< Texture2D > tex) (defined in Terraria.Utils) | Terraria.Utils | static |
Size(this Texture2D tex) (defined in Terraria.Utils) | Terraria.Utils | static |
Size(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
SmoothStep(float min, float max, float x) (defined in Terraria.Utils) | Terraria.Utils | static |
Swap< T >(ref T t1, ref T t2) (defined in Terraria.Utils) | Terraria.Utils | static |
TileActionAttempt(int x, int y) (defined in Terraria.Utils) | Terraria.Utils | |
ToByteArray(this string str) (defined in Terraria.Utils) | Terraria.Utils | static |
ToDirectionInt(this bool value) (defined in Terraria.Utils) | Terraria.Utils | static |
ToInt(this bool value) (defined in Terraria.Utils) | Terraria.Utils | static |
Top(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
TopLeft(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
ToPoint(this Vector2 v) (defined in Terraria.Utils) | Terraria.Utils | static |
ToPoint(this Point16 p) (defined in Terraria.Utils) | Terraria.Utils | static |
ToPoint16(this Vector2 v) (defined in Terraria.Utils) | Terraria.Utils | static |
TopRight(this Rectangle r) (defined in Terraria.Utils) | Terraria.Utils | static |
ToRotation(this Vector2 v) (defined in Terraria.Utils) | Terraria.Utils | static |
ToRotationVector2(this float f) (defined in Terraria.Utils) | Terraria.Utils | static |
ToScreenPosition(this Vector2 worldPosition) (defined in Terraria.Utils) | Terraria.Utils | static |
ToTileCoordinates(this Vector2 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
ToTileCoordinates16(this Vector2 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
ToVector2(this Point p) (defined in Terraria.Utils) | Terraria.Utils | static |
ToVector2(this Point16 p) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Point p, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Point16 p, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Point p, Vector2 autoAddXY) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Point16 p, Vector2 autoAddXY) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Vector2 v, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils) | Terraria.Utils | static |
ToWorldCoordinates(this Vector2 v, Vector2 autoAddXY) (defined in Terraria.Utils) | Terraria.Utils | static |
TrimTextIfNeeded(ref string text, DynamicSpriteFont font, float scale, float maxWidth) (defined in Terraria.Utils) | Terraria.Utils | static |
TryCreatingDirectory(string folderPath) (defined in Terraria.Utils) | Terraria.Utils | static |
Turn01ToCyclic010(float value) (defined in Terraria.Utils) | Terraria.Utils | static |
UnclampedSmoothStep(float min, float max, float x) (defined in Terraria.Utils) | Terraria.Utils | static |
UnixTimeStampToDateTime(long unixTimeStamp) (defined in Terraria.Utils) | Terraria.Utils | static |
Vector2FromElipse(Vector2 angleVector, Vector2 elipseSizes) (defined in Terraria.Utils) | Terraria.Utils | static |
Width(this Asset< Texture2D > asset) (defined in Terraria.Utils) | Terraria.Utils | static |
WithinRange(this Vector2 Origin, Vector2 Target, float MaxRange) (defined in Terraria.Utils) | Terraria.Utils | static |
WordwrapString(string text, DynamicSpriteFont font, int maxWidth, int maxLines, out int lineAmount) (defined in Terraria.Utils) | Terraria.Utils | static |
WordwrapStringSmart(string text, Color c, DynamicSpriteFont font, int maxWidth, int maxLines) (defined in Terraria.Utils) | Terraria.Utils | static |
WrappedLerp(float value1, float value2, float percent) (defined in Terraria.Utils) | Terraria.Utils | static |
WritePackedVector2(this BinaryWriter bb, Vector2 v) (defined in Terraria.Utils) | Terraria.Utils | static |
WriteRGB(this BinaryWriter bb, Color c) (defined in Terraria.Utils) | Terraria.Utils | static |
WriteVector2(this BinaryWriter bb, Vector2 v) (defined in Terraria.Utils) | Terraria.Utils | static |
XY(this Vector4 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
XZW(this Vector4 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
YZW(this Vector4 vec) (defined in Terraria.Utils) | Terraria.Utils | static |
ZW(this Vector4 vec) (defined in Terraria.Utils) | Terraria.Utils | static |