Show / Hide Table of Contents

Class BodyGraph

Agent body graphical component

Inheritance
System.Object
BodyGraph
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class BodyGraph : object

Properties

ForceHighLight

You probably don't need to use this. Used by the GUI to highlight clicked objects, or things marked to be recycled

Declaration
public Color ForceHighLight { get; set; }
Property Value
Type Description
Color

Owner

The owner of this body graph

Declaration
public Agent Owner { get; }
Property Value
Type Description
Agent

Parts

A list of body parts attached to this body graph

Declaration
public List<BodyPart> Parts { get; set; }
Property Value
Type Description
List<BodyPart>

Scale

Scale up/down this body graph by this %

Declaration
public float Scale { get; set; }
Property Value
Type Description
System.Single

Texture

A texture containing this agent's body parts, etc.

GenerateTexture()

Declaration
public Texture Texture { get; }
Property Value
Type Description
Texture

Methods

ForceAnimation(EAnimationType)

"Force" the body to play an animation

Declaration
public void ForceAnimation(EAnimationType type)
Parameters
Type Name Description
EAnimationType type

The animation type to play

GenerateTexture()

Generate a Texture containing this agent's body parts, etc.

Declaration
public Texture GenerateTexture()
Returns
Type Description
Texture

The texture

GetAbsoluteRectangle()

Used internally. Don't use.

Declaration
public Rectangle GetAbsoluteRectangle()
Returns
Type Description
Rectangle

GetBodyPart(EBodyPartType)

Get a body part matching type

Declaration
public BodyPart GetBodyPart(EBodyPartType type)
Parameters
Type Name Description
EBodyPartType type

The type of body part to look for

Returns
Type Description
BodyPart

The first body part that matches, or null

Reset(Int32)

Reset the body to its initial state.

Declaration
public void Reset(int timeInMs = 200)
Parameters
Type Name Description
System.Int32 timeInMs

The number of milliseconds to animate resetting for.

SetOrigin(BodyPart)

Set the "origin" part of this body part - all other associated body parts will radiate from the "origin" part

Declaration
public void SetOrigin(BodyPart part)
Parameters
Type Name Description
BodyPart part

The body part to set as the origin

ShowEmote(Emote, Int32)

Show a bonus texture emote

Declaration
public void ShowEmote(Emote emote, int duration)
Parameters
Type Name Description
Emote emote

The emote to show

System.Int32 duration

How long to show the emote

ShowNeedEmote(ELivingNeed)

Show a bonus texture emote associated with a need

Declaration
public void ShowNeedEmote(ELivingNeed need)
Parameters
Type Name Description
ELivingNeed need

The need to show an emote for

Back to top © 2020 Anarkis Gaming. All rights reserved. Generated by DocFX