Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. if (DatObject.Phases > 1) //if there is more than 1 phase, the object is animated
  2. {
  3. DatObject.isAnimation = true;
  4. reader.ReadByte(); //animation type (either 0 for asynchronous or 1 for synchronous)
  5. 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
  6. reader.ReadByte(); //start phase (just tells the client which phase to start the animation at)
  7. for (int i = 0; i < DatObject.Phases; i++) //loop through each phase and get it's frame duration
  8. {
  9. reader.ReadUInt32();//minimum duration
  10. reader.ReadUInt32();//maximum duration
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement