Constructor

@:value({ onlyDescription : false, i : 0 })new (i:Int = 0, onlyDescription:Bool = false)

Variables

@:value(false)apocalypseTrigger:Bool = false

N/A

@:value(-1)backFootIndex:Int = -1

Index of back foot for object

@:value([0])biomes:Array<Int> = [0]

@:value(false)blocksWalking:Bool = false

Boolean if object blocks walking

@:value(-1)bodyIndex:Int = -1

Index of body for object

@:value(-1)cacheHeight:Int = -1

Cached height of object

@:value("n")clothing:String = "n"

N/A

@:value(new Point())clothingOffset:Point = new Point()

Offset of object when worn

@:value(0.000000)containSize:Float = 0.000000

N/A

@:value(false)containable:Bool = false

Whether an object is containable

@:value(false)creationSoundForce:Bool = false

N/A

@:value(false)creationSoundInitialOnly:Bool = false

N/A

@:value(0)deadlyDistance:Int = 0

Deadly distance in tiles

@:value(0)deathMarker:Int = 0

N/A

@:value("")description:String = ""

Description of object

@:value(false)drawBehindPlayer:Bool = false

If Object is drawn

@:value(false)dummy:Bool = false

dummy bool for generated object

@:value(0)dummyParent:Int = 0

dummy parent id

@:value(-1)eyesIndex:Int = -1

Generated index from sprite name of eye index

@:value(null)eyesOffset:Point = null

Generated index from sprites of eye index

@:value(false)floor:Bool = false

If object is floor

@:value(false)floorHugging:Bool = false

N/A

@:value(0)foodValue:Int = 0

Increase value to player's food if object is eaten

@:value(-1)frontFootIndex:Int = -1

Index of front foot for object

@:value(-1)headIndex:Int = -1

Index of head for object

@:value(0)heatValue:Int = 0

Heat value of object

@:value(false)heldInHand:Bool = false

Is held in hand boolean, hide closest arm

heldOffset:Point

Position offset of object when held

@:value(0)homeMarker:Int = 0

N/A

@:value(0)id:Int = 0

Id of object

@:value(0)leftBlockingRadius:Int = 0

N/A

@:value(false)male:Bool = false

If person object is male

@:value(0.000000)mapChance:Float = 0.000000

Chance of object to appear

@:value(0)minPickupAge:Int = 0

Min age to be able to pick up object

@:value(false)monumentCall:Bool = false

N/A

@:value(false)monumentDone:Bool = false

N/A

@:value(false)monumentStep:Bool = false

N/A

@:value(-1)mouthIndex:Int = -1

Generated index from sprite of mouth index

@:value(false)neverDrop:Bool = false

weapon can not be dropped

@:value(false)noBackAcess:Bool = false

@:value(false)noFlip:Bool = false

N/A

@:value(false)noSpawn:Bool = false

N/A

@:value(0)numSlots:Int = 0

Num of slots in object

@:value(0)numSprites:Int = 0

Number of sprites in object

@:value(0)numUses:Int = 0

Number of uses for object

@:value(0)permanent:Int = 0

N/A

@:value(0)person:Int = 0

If person

@:value(0.000000)rValue:Float = 0.000000

N/A

@:value(false)rideable:Bool = false

Rideable boolean

@:value(0)rightBlockingRadius:Int = 0

N/A

@:value(false)sideAcess:Bool = false

N/A

slotParent:Vector<Int>

N/A

slotPos:Vector<Point>

postion of slots

@:value(1)slotSize:Float = 1

N/A

slotVert:Vector<Bool>

N/A

@:value(1)slotsLocked:Int = 1

N/A

sounds:Vector<SoundData>

Sound array for objects

@:value(1.000000)speedMult:Float = 1.000000

Multiply speed of player if held

spriteArray:Vector<SpriteData>

Array of sprite data

@:value(1.000000)timeStretch:Float = 1.000000

N/A

@:value(false)toolLearned:Bool = false

N/A

@:value(0)toolSetIndex:Int = 0

N/A

useAppearIndex:Array<Int>

Appear index array

@:value(0)useChance:Float = 0

Number of chances for object

@:value(1)useDistance:Int = 1

Use distance in tiles

useVanishIndex:Array<Int>

Vanish index array

@:value(0.000000)vertSlotRot:Float = 0.000000

rotation of slots

Methods

clone ():ObjectData

clone data

inlineisNatural ():Bool

read ():Void

Read data to set

toFileString ():String

Static variables

@:value(6)staticinlineread onlyCLOTHING_PIECES:Int = 6

Max clothing pieces

@:value([])statictoolsetRecord:Array<ToolSetRecord> = []

Toolset record set

Inherited Variables

Inherited Methods

Defined by LineReader

getArrayInt ():Array<Int>

Multi property array int value from line

Returns:

Array

getBool ():Bool

Boolean value from line

Returns:

Bool

getFloat ():Float

Float value from line

Returns:

Float

getFloatArray ():Array<Float>

Float Array value from line

Returns:

Array

getInt ():Int

Int from string

Returns:

Int

getIntArray ():Array<Int>

Int Array value from line

Returns:

Array

getName ():String

getPoint ():Point

Point (x,y) from line

Returns:

Point

getString ():String

String value from line

Returns:

String

getStringArray ():Array<String>

String Array value from line

Returns:

Array

readLines (string:String):Bool

Read lines and put into line vector

Parameters:

string

text split into lines

readName (name:String):Bool

Name from line

Parameters:

name

Returns:

Bool