Stores the gene details from the parsed binary values.
Stores the gene hex type wether its in 256 or 512 bit.
Stores the grouped binary values from the hex value.
Getter for the back genes of the Axie.
Genes for the Axie's back.
Getter for the body skin of the Axie.
Skin of the Axie's body.
Getter for the class of the Axie.
Class of the Axie.
Getter for the color genes of the Axie.
Genes for the Axie's color.
Getter for the ears genes of the Axie.
Genes for the Axie's ears.
Getter for the eye genes of the Axie.
Genes for the Axie's eye.
Getter for all of the details of the Axie's gene.
Objects that contains all of the details about of the Axie's gene.
Getter for the horn genes of the Axie.
Genes for the Axie's horns.
Getter for the mouth genes of the Axie.
Genes for the Axie's mouth.
Getter for the pattern genes of the Axie.
Genes for the Axie's pattern.
Getter for the region of the Axie.
Region of the Axie.
Getter for the tag associated with the Axie.
Tag associated with the Axie.
Getter for the tail genes of the Axie.
Genes for the Axie's tail.
Calculates the purity or gene quality of the Axie's gene.
a number that represents the quality of the gene in percentage.
Calculate the purity or gene quality of the Axie's individual parts.
part genes the will be used for the calculation.
an integer that represents the quality of the individual part in percentage.
Parse the body skin binary values from the GeneBinGroup into a BodySkin object.
BodySkin body skin of the Axie.
Parse the class binary values from the GeneBinGroup into a Cls object.
Cls class of the Axie.
Parse the color gene binary values from the GeneBinGroup into a ColorGene object.
ColorGene color gene of the Axie.
Converts the binary values into a human-readable format in the form of a Gene object.
Gene Gene object that contains the set of gene information.
Converts the hex into its binary representation and divides them based on their respective respective groups. Each group represents a part of an Axie.
hex representation of an Axie's gene.
An object that contains the binary value from the hex. The binary values are divided into their respective group based on the gene detail that they represent.
Parse the part gene binary values from the GeneBinGroup into a Part object.
binary of the part that will be parsed.
part type that will be parsed. A part type refers to an Axie's body part including: Eyes, Ears, Mouth, Back, Horn, Tail
Part part gene of the Axie.
Parse the class of the given part into a Cls object.
binary representation of an Axie's body part.
Cls class of the Axie's body part.
Converts the part type and name into a format used as the partId. A lookup is then performed from the contents of the parts.json file to match the partId with the part gene presets.
body part that will be parsed.
name of the specific body part.
PartGene an objects that contains the part class, id, name, type, and if it is a special gene.
Parse the name of an Axie's body part based on its class, part type, region, part binary, and skin binary.
class of the Axie's body part.
part type that will be parsed.
region binary of the Axie.
part binary of the Axie.
skin type of the Axie's part.
Cls class of the Axie.
Parses the skin of the part based on its region and skin binary value.
region binary of the Axie.
skin binary of the Axie.
PartSkin skin of the Axie's body part.
Parse the pattern gene binary values from the GeneBinGroup into a PatternGene object.
PatternGene pattern gene of the Axie.
Parse the region binary values from the GeneBinGroup into a Region object.
Region region of the Axie.
Parse the tag binary values from the GeneBinGroup into a Tag object.
Tag tag of the Axie.
Generated using TypeDoc
Stores the gene information of an Axie. These informations are parsed from the provided hex representation of the Axie's gene on its constructor call. Supports both 256 and 512 bit hex genes.
Usage
Javascript
Typescript