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

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

Static Public Member Functions

static implicit operator tk2dSpriteAnimator (SpriteAnimator s)
 Implicit cast operator that allows you to use SpriteAnimator anywhere where tk2dSpriteAnimator is expected. More...
 
static SpriteAnimator Construct (GameObject parent, SpriteAnimation animation, string default_clip=null)
 Constructs a new sprite animator. More...
 

Public Attributes

tk2dSpriteAnimator Wrap
 Real tk2d object. More...
 

Detailed Description

Wrapper struct for tk2dSpriteAnimator that provides a cleaner interface and works transparently with anything that expects tk2dSpriteAnimators.

Member Function Documentation

◆ Construct()

static SpriteAnimator Semi.SpriteAnimator.Construct ( GameObject  parent,
SpriteAnimation  animation,
string  default_clip = null 
)
inlinestatic

Constructs a new sprite animator.

Returns
The new sprite animator.
Parameters
parentThe game object to add this animator to.
animationThe SpriteAnimation object to use for the animator.
default_clipOptional name of the default clip. If not set, the first clip will be used.

◆ operator tk2dSpriteAnimator()

static implicit Semi.SpriteAnimator.operator tk2dSpriteAnimator ( SpriteAnimator  s)
static

Implicit cast operator that allows you to use SpriteAnimator anywhere where tk2dSpriteAnimator is expected.

Member Data Documentation

◆ Wrap

tk2dSpriteAnimator Semi.SpriteAnimator.Wrap

Real tk2d object.


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