GameObjectSchematic

Schematic containing data for constructing a GameObject as well as the schematics for its various components.

Summary
GameObjectSchematicSchematic containing data for constructing a GameObject as well as the schematics for its various components.
Functions
NKGetNameRetrieve the name of the GameObject this schematic creates.
NKGetDisplayNameRetrieve the name of the GameObject this schematic creates.
NKGetMaterialRepIDRetrieve the material held in this schematics PlaceableMaterialComponent, if there is one.
NKGetIconNameGets the icon we should use for this game schematic when displayed in the inventory
NKGetCraftingArcheTypeThis function is deprecated and scheduled for removal.
NKGetCategoryGets the category defined by this object
NKGetTierGets the tier defined by this object
NKHasComponentOfTypeReturns whether or not the game object this schematic creates has a component of the given type.
NKGetTagReturns the tag of this schematic.
NKGetPlaceableComponentSchematicGets the placeable schematic from this game object’s schematic
NKGetPlaceableMaterialSchematicGet the placeable material schematic from this game object’s schematic.
NKCreateStaticGraphicsCreates a new StaticGraphicsComponent from this game object’s schematic

Functions

NKGetName

Retrieve the name of the GameObject this schematic creates.

Returns

stringThe name of the GameObject.

NKGetDisplayName

Retrieve the name of the GameObject this schematic creates.

Returns

stringThe name of the GameObject.

NKGetMaterialRepID

Retrieve the material held in this schematics PlaceableMaterialComponent, if there is one.

Returns

MaterialThe material to be constructed by this schematics PlaceableMaterialComponent.  Null if it doesn’t have one.

NKGetIconName

Gets the icon we should use for this game schematic when displayed in the inventory

Returns

stringThe icon name as it appears in the icon imageset (TUGIcon)

NKGetCraftingArcheType

This function is deprecated and scheduled for removal.

NKGetCategory

Gets the category defined by this object

Returns

stringcategory

NKGetTier

Gets the tier defined by this object

Returns

inttier

NKHasComponentOfType

Returns whether or not the game object this schematic creates has a component of the given type.

Parameters

IComponent.eTypeType of component to check for.

Returns

boolWhether or not the game object this schematic creates has a component of the given type.

NKGetTag

Returns the tag of this schematic.

Returns

stringThe tag of this schematic.

NKGetPlaceableComponentSchematic

Gets the placeable schematic from this game object’s schematic

Returns

<PlaceableSchematic>the placeable schematic of this game object

NKGetPlaceableMaterialSchematic

Get the placeable material schematic from this game object’s schematic.

Returns

<PlaceableMaterialSchematic>the placeable material schematic of this game object.

NKCreateStaticGraphics

Creates a new StaticGraphicsComponent from this game object’s schematic

Returns

<StaticGraphicsComponent>new StaticGraphicsComponent
Close