C# Class AnimatorClient.AnimationLoader

TODO: Update summary.
Mostrar archivo Open project: uiacm/tower_creator

Public Methods

Method Description
LoadAnimationFromFile ( string fileName ) : Animation

Opens an animation from a file.

Private Methods

Method Description
LoadV2AnimationFromFile ( StreamReader file ) : Animation

Loads a v2 animation file from the an already open file. 1. 0.2 2. [framecount] [rowcount] [columncount] 3. [frameduration (double, seconds)] 4. [row 0, col 0 (0 or 1)] [row 0, col 1 (0 or 1)] ... [row 0, col columncount, (0 or 1)] 5. ... 6. [row rowcount, col 0 (0 or 1)] [row rowcount, col 1 (0 or 1)] ... [row rowcount, col columncount, (0 or 1)] 7. (repeat for framecount times)

LoadV3AnimationFromFile ( StreamReader file ) : Animation

Loads a v3 animation from an already open file 2. [toolcolor1 Red (int)] [toolcolor1 Green (int)] [toolcolor1 Blue (int)] [toolcolor2 Red (int)] [toolcolor2 Green (int)] [toolcolor2 Blue (int)] [toolcolor3 Red (int)] [toolcolor3 Green (int)] [toolcolor3 Blue (int)] 3. [pcolor1 Red (int)] [ pcolor1 Green (int)] [pcolor1 Blue (int)] ... [pcolor9 Red (int)] [ pcolor9 Green (int)] [pcolor9 Blue (int)] 4. [pcolor10 Red (int)] [ pcolor10 Green (int)] [pcolor10 Blue (int)] ... [pcolor18 Red (int)] [ pcolor18 Green (int)] [pcolor18 Blue (int)] 5. [framecount] [rowcount] [columncount] 6. [framestart (mm:ss:fff)] 7. [(0,0) Red (byte)] [(0,0) Green (byte)] [(0,0) Blue (byte)] ... [(0,columncount) Red (byte)] [(0,columncount) Green (byte)] [(0,columncount) Blue (byte)] 8. ... 9. [(rowcount,0) Red (byte)] [(rowcount,0) Green (byte)] [(rowcount,0) Blue (byte)] ... [(rowcount,columncount) Red (byte)] [(rowcount,columncount) Green (byte)] [(rowcount,columncount) Blue (byte)] 10. (repeat for framecount times)

LoadV4AnimationFromFile ( StreamReader file ) : Animation

Method Details

LoadAnimationFromFile() public static method

Opens an animation from a file.
public static LoadAnimationFromFile ( string fileName ) : Animation
fileName string
return AnimationModels.Animation