PixelCrushers.DialogueSystem.ARPG.ARPGBridge Class Reference

This provides a data bridge between ARPG and the Dialogue System. More...

Inheritance diagram for PixelCrushers.DialogueSystem.ARPG.ARPGBridge:
Collaboration diagram for PixelCrushers.DialogueSystem.ARPG.ARPGBridge:

Public Member Functions

void OnConversationStart (Transform actor)
 Prepares to run a conversation by freezing the player (if ticked), syncing data to Lua, and setting the NPC to "talking" mode. More...
 
void OnConversationEnd (Transform actor)
 At the end of a conversation, unfreezes the player, syncs data back from Lua, and turns off the NPC's "talking" mode. More...
 
void OnRecordPersistentData ()
 
void OnApplyPersistentData ()
 
void SyncToLua ()
 Syncs data to Lua. More...
 
void SyncFromLua ()
 Syncs back from Lua. More...
 

Static Public Member Functions

static void SetPlayerLevel (double value)
 
static void SetPlayerAtk (double value)
 
static void SetPlayerDef (double value)
 
static void SetPlayerMAtk (double value)
 
static void SetPlayerMDef (double value)
 
static void SetPlayerExp (double value)
 
static void AdjustPlayerExp (double amount)
 
static void SetPlayerMaxExp (double value)
 
static void SetPlayerHealth (double value)
 
static void AdjustPlayerHealth (double amount, double element)
 
static void SetPlayerMaxHealth (double value)
 
static void SetPlayerMana (double value)
 
static void SetPlayerMaxMana (double value)
 
static void SetPlayerStatusPoint (double value)
 
static int GetItemCount (double itemID)
 
static void AddItem (double itemID, double quantity)
 
static void RemoveItem (double itemID, double quantity)
 
static bool HasEquipment (double itemID)
 
static void AddEquipment (double itemID)
 
static void RemoveEquipment (double itemID)
 

Public Attributes

string playerNameInDatabase = "Player"
 
bool includeSimStatus = false
 If ticked, save data will include dialogue entry status (offered and/or spoken). More...
 
bool debug = false
 

Properties

static ARPGBridge instance [get]
 
GameObject player [get]
 
StatusC status [get]
 
InventoryC inventory [get]
 
SkillWindowC skillWindow [get]
 
bool showDebug [get]
 

Detailed Description

This provides a data bridge between ARPG and the Dialogue System.

Add it to your Dialogue Manager object.

Member Function Documentation

◆ AddEquipment()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.AddEquipment ( double  itemID)
static

◆ AddItem()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.AddItem ( double  itemID,
double  quantity 
)
static

◆ AdjustPlayerExp()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.AdjustPlayerExp ( double  amount)
static

◆ AdjustPlayerHealth()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.AdjustPlayerHealth ( double  amount,
double  element 
)
static

◆ GetItemCount()

static int PixelCrushers.DialogueSystem.ARPG.ARPGBridge.GetItemCount ( double  itemID)
static

◆ HasEquipment()

static bool PixelCrushers.DialogueSystem.ARPG.ARPGBridge.HasEquipment ( double  itemID)
static

◆ OnApplyPersistentData()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.OnApplyPersistentData ( )

◆ OnConversationEnd()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.OnConversationEnd ( Transform  actor)

At the end of a conversation, unfreezes the player, syncs data back from Lua, and turns off the NPC's "talking" mode.

Parameters
actorActor.

◆ OnConversationStart()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.OnConversationStart ( Transform  actor)

Prepares to run a conversation by freezing the player (if ticked), syncing data to Lua, and setting the NPC to "talking" mode.

Parameters
actorThe other actor.

◆ OnRecordPersistentData()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.OnRecordPersistentData ( )

◆ RemoveEquipment()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.RemoveEquipment ( double  itemID)
static

◆ RemoveItem()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.RemoveItem ( double  itemID,
double  quantity 
)
static

◆ SetPlayerAtk()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerAtk ( double  value)
static

◆ SetPlayerDef()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerDef ( double  value)
static

◆ SetPlayerExp()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerExp ( double  value)
static

◆ SetPlayerHealth()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerHealth ( double  value)
static

◆ SetPlayerLevel()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerLevel ( double  value)
static

◆ SetPlayerMana()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMana ( double  value)
static

◆ SetPlayerMAtk()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMAtk ( double  value)
static

◆ SetPlayerMaxExp()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMaxExp ( double  value)
static

◆ SetPlayerMaxHealth()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMaxHealth ( double  value)
static

◆ SetPlayerMaxMana()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMaxMana ( double  value)
static

◆ SetPlayerMDef()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerMDef ( double  value)
static

◆ SetPlayerStatusPoint()

static void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SetPlayerStatusPoint ( double  value)
static

◆ SyncFromLua()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SyncFromLua ( )

Syncs back from Lua.

◆ SyncToLua()

void PixelCrushers.DialogueSystem.ARPG.ARPGBridge.SyncToLua ( )

Syncs data to Lua.

Member Data Documentation

◆ debug

bool PixelCrushers.DialogueSystem.ARPG.ARPGBridge.debug = false

◆ includeSimStatus

bool PixelCrushers.DialogueSystem.ARPG.ARPGBridge.includeSimStatus = false

If ticked, save data will include dialogue entry status (offered and/or spoken).

◆ playerNameInDatabase

string PixelCrushers.DialogueSystem.ARPG.ARPGBridge.playerNameInDatabase = "Player"

Property Documentation

◆ instance

ARPGBridge PixelCrushers.DialogueSystem.ARPG.ARPGBridge.instance
staticget

◆ inventory

InventoryC PixelCrushers.DialogueSystem.ARPG.ARPGBridge.inventory
get

◆ player

GameObject PixelCrushers.DialogueSystem.ARPG.ARPGBridge.player
get

◆ showDebug

bool PixelCrushers.DialogueSystem.ARPG.ARPGBridge.showDebug
get

◆ skillWindow

SkillWindowC PixelCrushers.DialogueSystem.ARPG.ARPGBridge.skillWindow
get

◆ status

StatusC PixelCrushers.DialogueSystem.ARPG.ARPGBridge.status
get

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