Semi Mod Loader
Static Public Member Functions | List of all members
Semi.PickupObjectTreeBuilder Class Reference

Static Public Member Functions

static GameObject GetNewInactiveObject (string name)
 Creates a new Semi.FakePrefab already containing certain components that need to be cloned from another item prefab. More...
 
static GameObject GetNewBarrel ()
 Creates a new Semi.FakePrefab of a barrel offset object. More...
 
static T AddPickupObject< T > (GameObject go)
 Creates a new PickupObject. More...
 
static JournalEntry CreateJournalEntry (string name_key, string long_desc_key, string short_desc_key, string enc_icon_name)
 Creates a new JournalEntry. More...
 
static EncounterTrackable AddEncounterTrackable (GameObject go, JournalEntry journal_entry, string enc_guid)
 Creates a new EncounterTrackable. More...
 
static EncounterDatabaseEntry CreateEncounterDatabaseEntry (EncounterTrackable enc_track, string path)
 Creates a new EncounterDatabaseEntry. More...
 
static Sprite AddSprite (GameObject go, Sprite base_sprite)
 Adds a copy of a sprite to a game object. More...
 

Member Function Documentation

◆ AddEncounterTrackable()

static EncounterTrackable Semi.PickupObjectTreeBuilder.AddEncounterTrackable ( GameObject  go,
JournalEntry  journal_entry,
string  enc_guid 
)
inlinestatic

Creates a new EncounterTrackable.

Returns
The new encounter trackable.
Parameters
goTarget game object.
journal_entryJournal entry object.
enc_guidUnique encounter ID.

◆ AddPickupObject< T >()

static T Semi.PickupObjectTreeBuilder.AddPickupObject< T > ( GameObject  go)
inlinestatic

Creates a new PickupObject.

Returns
The new pickup object.
Parameters
goTarget game object.
Template Parameters
TItem type (descendant from PickupObject).
Type Constraints
T :PickupObject 

◆ AddSprite()

static Sprite Semi.PickupObjectTreeBuilder.AddSprite ( GameObject  go,
Sprite  base_sprite 
)
inlinestatic

Adds a copy of a sprite to a game object.

Returns
The new sprite.
Parameters
goTarget game object.
base_spriteSprite to copy.

◆ CreateEncounterDatabaseEntry()

static EncounterDatabaseEntry Semi.PickupObjectTreeBuilder.CreateEncounterDatabaseEntry ( EncounterTrackable  enc_track,
string  path 
)
inlinestatic

Creates a new EncounterDatabaseEntry.

Returns
The new encounter database entry.
Parameters
enc_trackEncounter trackable object.
pathString to set as the asset path.

◆ CreateJournalEntry()

static JournalEntry Semi.PickupObjectTreeBuilder.CreateJournalEntry ( string  name_key,
string  long_desc_key,
string  short_desc_key,
string  enc_icon_name 
)
inlinestatic

Creates a new JournalEntry.

Returns
The new journal entry.
Parameters
name_keyGlobal ID of the localization key for the Ammmonomicon name.
long_desc_keyGlobal ID of the localization key for the Ammmonomicon long description.
short_desc_keyGlobal ID of the localization key for the Ammmonomicon short description.
enc_icon_nameGlobal ID of the encounter icon for this journal entry.

◆ GetNewBarrel()

static GameObject Semi.PickupObjectTreeBuilder.GetNewBarrel ( )
inlinestatic

Creates a new Semi.FakePrefab of a barrel offset object.

Returns
The new barrel offset object.

◆ GetNewInactiveObject()

static GameObject Semi.PickupObjectTreeBuilder.GetNewInactiveObject ( string  name)
inlinestatic

Creates a new Semi.FakePrefab already containing certain components that need to be cloned from another item prefab.

Returns
The new game object.
Parameters
nameName of the new object.

The documentation for this class was generated from the following file: