tfg
Loading...
Searching...
No Matches
BonesInfo Class Reference

Helper class to facilitate the storage of the bones information in order to send it to the server. More...

Public Member Functions

 BonesInfo ()
 Constructor for the class that initializes the NumberFormatInfo and the list of bones.
void AddInfo (List< Transform > b)
 Adds the information from the list passed as a parameter to the class list.
string ToJSON (int index, out int lastIndex)
 Transforms the list of bones into a text string in JSON format.

Detailed Description

Helper class to facilitate the storage of the bones information in order to send it to the server.

Member Function Documentation

◆ AddInfo()

void BonesInfo.AddInfo ( List< Transform > b)
inline

Adds the information from the list passed as a parameter to the class list.

Parameters
bList of Transforms to storage.

◆ ToJSON()

string BonesInfo.ToJSON ( int index,
out int lastIndex )
inline

Transforms the list of bones into a text string in JSON format.

Parameters
indexIndex from where it should start.
lastIndexIndex where it ends as an output parameter. This parameter is required to ensure consistency with the number in the bone names sent to the server when called multiple times in a row.
Returns
Text string of bone information in JSON format.

The documentation for this class was generated from the following file:
  • BonesInfo.cs