Class TK2dCommon
Contains common utility functions for importing TK2D Sprites and Animations
Namespace: WeaverCore.Editor
Assembly: WeaverCore.Editor.dll
Syntax
public static class TK2dCommon
  Methods
| Edit this page View SourceOpenAnimationMap(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  | 
      
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  | 
      
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  | 
      
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  | 
      
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  | 
      
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  |