Gorgon
Show / Hide Table of Contents

Class GorgonAnimationExtensions

Extension methods for IO on animation objects.

Inheritance
object
GorgonAnimationExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.IO
Assembly: Gorgon.IO.Gorgon2D.dll
Syntax
public static class GorgonAnimationExtensions

Methods

| Edit this page View Source

ToJson(IGorgonAnimation, bool)

Function to convert a IGorgonAnimation to a JSON string.

Declaration
public static string ToJson(this IGorgonAnimation animation, bool prettyFormat = false)
Parameters
Type Name Description
IGorgonAnimation animation

The animation to convert.

bool prettyFormat

[Optional] true to use pretty formatting for the string, or false to use a compact form.

Returns
Type Description
string

The animation encoded as a JSON string.

Exceptions
Type Condition
ArgumentNullException

Thrown when the animation parameter is null.

See Also
IGorgonAnimation
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author