Skip to content

10.50 support. #544

@HeavenIsLost

Description

@HeavenIsLost

Dat format has changed, now its has better animation support. Any planing to how support this on OTClient?

if (DatObject.Phases > 1) //if there is more than 1 phase, the object is animated
{
DatObject.isAnimation = true;
reader.ReadByte(); //animation type (either 0 for asynchronous or 1 for synchronous)
reader.ReadInt32(); //loop count (basically, if loop count is > 0 then a loop animation is used. if loop count is < 0 a ping-pong animation is used. hence the use of readint32 and not readuint32
reader.ReadByte(); //start phase (just tells the client which phase to start the animation at)
for (int i = 0; i < DatObject.Phases; i++) //loop through each phase and get it's frame duration
{
reader.ReadUInt32();//minimum duration
reader.ReadUInt32();//maximum duration
}
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions