Constructor

new()

Variables

@:value(new StringMap())linkData:Map<String, Array<FoxTrackLinkData>> = new StringMap()

Methods

link(trackName:String, object:Dynamic, property:String):Int

Links an object's property to an animation track, thus causing it to animate.

Functions work aswell! In that case, the number of components of a vector will serve as arguments: For example FlxSprite.setPosition() will recieve the Vector2 x and y.

The only exception to this is tracks of type Matrix3D, they will recieve the matrix object instead.

Note: For non-functions, make sure the property type and the track type are equal, else the link will not work.

Returns:

The index of the link in the track

unlink(trackName:String, object:Dynamic, property:String):Void

Removes an object's property from a linked animation track.

unlinkByIndex(trackName:String, index:Int):Void

Removes a link from an animation track by its index

unlinkAllOf(object:Dynamic, ?property:String, ?trackName:String):Void

Removes all links of an object from the linker.

Parameters:

property

(Optional) A property name which will act as a filter, and will only remove links affecting that property.

trackName

(Optional) If set, it will remove all links from that track only.

linkSkin(skin:FoxSkinData):Void

Links all supported tracks to a FoxSkinData

Tracks with the name following the format boneName:property will be linked. Supported properties are position, rotation and scale

linkObject(trackPrefix:String, object:FoxObject):Void

Links a FoxObject's transforms to this track data

unlinkObject(trackPrefix:String, object:FoxObject):Void

findLink(trackName:String, object:Dynamic, property:String):Int

Searches for a link for a track and returns its index on the linker

clearLinks():Void

updateLink(trackSrc:Map<String, FoxTrackData>):Void

Sends tracks value to the objects with linked properties

Parameters:

trackSrc

The tracks source

Inherited Variables

Defined by FoxBasic

@:value("FoxBasic")name:String = "FoxBasic"

@:value(true)visible:Bool = true

@:value(true)active:Bool = true

@:value(null)scene:FoxScene = null

@:value(false)__destroyed:Bool = false

animation:FoxAnimationPlayer

An animation controller for this basic. Although properties have to be manually linked, this is intended to be a general-purpose animator for this object

Inherited Methods

Defined by FoxBasic

update(dt:Float):Void

draw(camera:FoxCamera):Void

Intended for transforms, actual drawing happens in the camera render pass

pushDrawData(scene:FoxScene):Void

This function gets called when the scene starts building draw groups.

It should call the scene's addToDrawGroups() function for every drawable of this object.

Override this with your custom draw data function.

Note: Internal use only, it is a performance critical operation, keep it fast.

privateset_visible(v:Bool):Bool