tModLoader v2024.11
A mod to make and play Terraria mods
RangeAttribute Class Reference

Specifies a range for primitive data values. Without this, default min and max are as follows: float: 0, 1 - int/uint: 0, 100 - byte: 0, 255 More...

Inherits Attribute.

Public Member Functions

 RangeAttribute (byte min, byte max)
 
 RangeAttribute (float min, float max)
 
 RangeAttribute (int min, int max)
 
 RangeAttribute (uint min, uint max)
 

Properties

object Max [get]
 
object Min [get]
 

Detailed Description

Specifies a range for primitive data values. Without this, default min and max are as follows: float: 0, 1 - int/uint: 0, 100 - byte: 0, 255