Returns true if the timeline is ready to be used. i.e. there is at least one value in the timeline

Namespace:  Equis.JanusToolkit
Assembly:  Janus (in Janus.dll)

Syntax

C#
public bool Ready()

Return Value

Whether or not the timeline can return a value

Remarks

Used to determine if the TimeLine contains any values. A TimeLine must contain at least one value before the Get method can be used. It returns true if there are values in the TimeLine, otherwise returns false. It is good practice to call this method before using the Get method to ensure that Get will not return an error.

Examples

 Copy imageCopy Code
            protected override void Draw(GameTime gameTime)
            {
                if (playerPosition[other].Ready())
                {
                    TankStatus otherShip = playerPosition[other].Get(-REMOTE_LAG);
                }
            }
            

See Also