Esempio n. 1
0
 /// <summary>
 /// The function called to modify the node's data whenever a node disconnects.
 /// </summary>
 /// <param name="quest">The quest data.</param>
 /// <param name="connectionType">The type of the connecting node.</param>
 /// <param name="connectionID">The id of the connected node.</param>
 /// <param name="connectionKnobID">The id of the connected knob.</param>
 /// <param name="knobID">The id of the knob.</param>
 /// <param name="knobType">The type of the knob.</param>
 public virtual void OnDisconnect(QQ_QuestSO quest, QQ_NodeType connectionType, int connectionID, int connectionKnobID, int knobID, QQ_KnobType knobType)
 {
     if (Type == QQ_NodeType.Quest)
     {
         QQ_QuestEditor.db.GetQuestNode(ID).OnDisconnect(quest, connectionType, connectionID, connectionKnobID, knobID, knobType);
     }
     else if (Type == QQ_NodeType.Task)
     {
         QQ_QuestEditor.db.GetTaskNode(ID).OnDisconnect(quest, connectionType, connectionID, connectionKnobID, knobID, knobType);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// The function called to modify the node's data whenever a node disconnects.
 /// </summary>
 /// <param name="quest">The quest data.</param>
 /// <param name="connectionType">The type of the connecting node.</param>
 /// <param name="connectionID">The id of the connected node.</param>
 /// <param name="knobID">The id of the knob.</param>
 /// <param name="knobType">The type of the knob.</param>
 public override void OnDisconnect(QQ_QuestSO quest, QQ_NodeType connectionType, int connectionID, int knobID, QQ_KnobType knobType)
 {
     Data.OnDisconnect(quest, connectionType, connectionID, knobID, knobType);
     QQ_QuestEditor.db.DataDB.SetTask(Data.ID, Data);
 }
Esempio n. 3
0
 /// <summary>
 /// The function called to modify the node's data whenever a node disconnects.
 /// </summary>
 /// <param name="quest">The quest data.</param>
 /// <param name="connectionType">The type of the connecting node.</param>
 /// <param name="connectionID">The id of the connected node.</param>
 public override void OnDisconnect(QQ_QuestSO quest, QQ_NodeType connectionType, int connectionID)
 {
     Data.OnDisconnect(quest, connectionType, connectionID);
     QQ_QuestEditor.db.DataDB.SetQuest(Data.ID, Data);
 }