Show / Hide Table of Contents

Class TK2dCommon

Contains common utility functions for importing TK2D Sprites and Animations

Inheritance
object
TK2dCommon
Namespace: WeaverCore.Editor
Assembly: WeaverCore.Editor.dll
Syntax
public static class TK2dCommon

Methods

| Edit this page View Source

OpenAnimationMap(out AnimationMapImport)

Opens a .animmap file

Declaration
public static bool OpenAnimationMap(out AnimationMapImport result)
Parameters
Type Name Description
AnimationMapImport result

The output data

Returns
Type Description
bool

Returns true if the file was successfully opened

| Edit this page View Source

OpenAnimationMap(out AnimationMapImport, out string)

Opens a .animmap file

Declaration
public static bool OpenAnimationMap(out AnimationMapImport result, out string path)
Parameters
Type Name Description
AnimationMapImport result

The output data

string path

The path of the file to open. If null, then the user will need to specify one

Returns
Type Description
bool

Returns true if the file was successfully opened

| Edit this page View Source

OpenImage(string, out Texture2D)

Opens an image file

Declaration
public static bool OpenImage(string path, out Texture2D output)
Parameters
Type Name Description
string path

The path of the image to open

Texture2D output

The output texture data

Returns
Type Description
bool

Returns true if the file was successfully opened

| Edit this page View Source

OpenImage(out Texture2D)

Opens an image file

Declaration
public static bool OpenImage(out Texture2D output)
Parameters
Type Name Description
Texture2D output

The output texture data

Returns
Type Description
bool

Returns true if the file was successfully opened

| Edit this page View Source

OpenSpriteMap(out SpriteMapImport)

Opens a .spritemap file

Declaration
public static bool OpenSpriteMap(out SpriteMapImport result)
Parameters
Type Name Description
SpriteMapImport result

The output data

Returns
Type Description
bool

Returns true if the file was successfully opened

| Edit this page View Source

OpenSpriteMap(out SpriteMapImport, out string)

Opens a .spritemap file

Declaration
public static bool OpenSpriteMap(out SpriteMapImport result, out string path)
Parameters
Type Name Description
SpriteMapImport result

The output data

string path

The path of the file to open. If null, then the user will need to specify one

Returns
Type Description
bool

Returns true if the file was successfully opened

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾