Semi Mod Loader
Static Public Member Functions | Public Attributes | Properties | List of all members
Semi.SpriteAnimation Struct Reference

Wrapper struct for tk2dSpriteAnimation that provides a cleaner interface and works transparently with anything that expects tk2dSpriteAnimations. More...

Static Public Member Functions

static implicit operator tk2dSpriteAnimation (SpriteAnimation s)
 Implicit cast operator that allows you to use SpriteAnimation anywhere where tk2dSpriteAnimation is expected. More...
 
static SpriteAnimation Construct (GameObject parent, params SpriteAnimationClip[] clips)
 Constructs a new sprite animation. More...
 
static SpriteAnimation Load (Tk0dConfigParser.ParsedAnimation parsed, string anim_namespace)
 Load a Semi Animation format file from its parsed representation. The animation will be attached to the global modded animation game object. More...
 

Public Attributes

tk2dSpriteAnimation Wrap
 Real tk2d object. More...
 

Properties

ProxyList< SpriteAnimationClip, tk2dSpriteAnimationClip > Clips [get, set]
 All of the clips in this sprite animation. More...
 

Detailed Description

Wrapper struct for tk2dSpriteAnimation that provides a cleaner interface and works transparently with anything that expects tk2dSpriteAnimations.

Member Function Documentation

◆ Construct()

static SpriteAnimation Semi.SpriteAnimation.Construct ( GameObject  parent,
params SpriteAnimationClip[]  clips 
)
inlinestatic

Constructs a new sprite animation.

Returns
The new sprite animation.
Parameters
parentThe game object to add this animation to.
clipsOptional array of preset clips.

◆ Load()

static SpriteAnimation Semi.SpriteAnimation.Load ( Tk0dConfigParser.ParsedAnimation  parsed,
string  anim_namespace 
)
inlinestatic

Load a Semi Animation format file from its parsed representation. The animation will be attached to the global modded animation game object.

Returns
The new sprite collection.
Parameters
parsedParsed representation of the Semi Animation.
anim_namespaceNamespace to use for registering the animation.

◆ operator tk2dSpriteAnimation()

static implicit Semi.SpriteAnimation.operator tk2dSpriteAnimation ( SpriteAnimation  s)
static

Implicit cast operator that allows you to use SpriteAnimation anywhere where tk2dSpriteAnimation is expected.

Member Data Documentation

◆ Wrap

tk2dSpriteAnimation Semi.SpriteAnimation.Wrap

Real tk2d object.

Property Documentation

◆ Clips

ProxyList<SpriteAnimationClip, tk2dSpriteAnimationClip> Semi.SpriteAnimation.Clips
getset

All of the clips in this sprite animation.


The documentation for this struct was generated from the following file: