C# Class FlatRedBall_Spriter.SpriterObjectSave

Datei anzeigen Open project: kainazzzo/flatredball-spriter

Private Properties

Property Type Description
CreateRuntimeObjectsForSpriterBoneRef void
CreateRuntimeObjectsForSpriterObjectRef void
CreateSpriterObjectFromEntity SpriterObject
GetKeyFrameValues KeyFramePivotScaledValues
GetKeyFrameValues KeyFramePivotScaledValues
GetKeyFrameValuesForPoint KeyFrameValues
HandleUnreferencedTimelinekeys void
InterpolateToNewTimelineKey Key
LinearAngle float

Public Methods

Method Description
FromFile ( string filename ) : SpriterObjectSave
GetPercentageIntoFrame ( int milliSecondsIn, int currentKeyFrameTime, int nextKeyFrameTime ) : float
GetPivotedRelativePosition ( float width, float height, float pivotX, float pivotY, int zIndex ) : Vector3
LoadTexture ( SpriterDataFolderFile file ) : Texture2D
ToRuntime ( ) : SpriterObjectCollection

Private Methods

Method Description
CreateRuntimeObjectsForSpriterBoneRef ( Key key, SpriterBone>.IDictionary persistentBones, SpriterObject SpriterObject, SpriterDataEntityAnimation animation, KeyFrame keyFrame, ScaledPositionedObject>.IDictionary boneRefDic, int>.IDictionary boneRefParentDic, SpriterDataEntity entity, Key timelineKeyOverride = null ) : void
CreateRuntimeObjectsForSpriterObjectRef ( Key key, ScaledSprite>.IDictionary persistentScaledSprites, SpriterObject SpriterObject, SpriterDataEntityAnimation animation, Texture2D>.IDictionary textures, KeyFrame keyFrame, int>.IDictionary SpriterefParentDic, ObjectInfo>.IDictionary boxes, ScaledPolygon>.IDictionary persistentScaledPolygons, SpriterPoint>.IDictionary persistentPoints, Key timelineKeyOverride = null ) : void
CreateSpriterObjectFromEntity ( SpriterDataEntity entity ) : SpriterObject
GetKeyFrameValues ( Key timelineKey, ObjectInfo box, KeyObjectRef objectRef ) : KeyFramePivotScaledValues
GetKeyFrameValues ( Key timelineKey, SpriterDataFolderFile file, Texture2D>.IDictionary textures, string folderFileId, KeyObjectRef objectRef ) : KeyFramePivotScaledValues
GetKeyFrameValuesForPoint ( Key timelineKey, KeyObjectRef objectRef ) : KeyFrameValues
HandleUnreferencedTimelinekeys ( SpriterDataEntityAnimation animation, SpriterDataEntityAnimationMainline mainline, List keyFrameList, ScaledSprite>.IDictionary persistentScaledSprites, SpriterObject SpriterObject, Texture2D>.IDictionary textures, int>.IDictionary keyFrameValuesParentDictionary, SpriterBone>.IDictionary persistentBones, ScaledPositionedObject>.IDictionary boneRefDic, ObjectInfo>.IDictionary boxes, ScaledPolygon>.IDictionary persistentScaledPolygons, SpriterPoint>.IDictionary persistentPoints, SpriterDataEntity entity ) : void
InterpolateToNewTimelineKey ( Key mainlineKey, Key timelineKey, Key nextTimelineKey ) : Key
LinearAngle ( float angleA, float angleB, int spin, float percent ) : float

Method Details

FromFile() public static method

public static FromFile ( string filename ) : SpriterObjectSave
filename string
return SpriterObjectSave

GetPercentageIntoFrame() public static method

public static GetPercentageIntoFrame ( int milliSecondsIn, int currentKeyFrameTime, int nextKeyFrameTime ) : float
milliSecondsIn int
currentKeyFrameTime int
nextKeyFrameTime int
return float

GetPivotedRelativePosition() public static method

public static GetPivotedRelativePosition ( float width, float height, float pivotX, float pivotY, int zIndex ) : Vector3
width float
height float
pivotX float
pivotY float
zIndex int
return Vector3

LoadTexture() public method

public LoadTexture ( SpriterDataFolderFile file ) : Texture2D
file SpriterDataFolderFile
return Texture2D

ToRuntime() public method

public ToRuntime ( ) : SpriterObjectCollection
return SpriterObjectCollection