-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
feat(variables): added global database actions and conditions
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using UnityEngine; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Globals/Set Bool")] | ||
public class SetGlobalBool : SetLocalVariableBase<bool> { | ||
[SerializeField] | ||
public KeyValueDefinitionBool _variable; | ||
|
||
protected override KeyValueDefinitionBase<bool> Variable => _variable; | ||
|
||
protected override IKeyValueData<bool> GetDatabase (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Bools; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using UnityEngine; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Globals/Set Float")] | ||
public class SetGlobalFloat : SetLocalVariableBase<float> { | ||
[SerializeField] | ||
public KeyValueDefinitionFloat _variable; | ||
|
||
protected override KeyValueDefinitionBase<float> Variable => _variable; | ||
|
||
protected override IKeyValueData<float> GetDatabase (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Floats; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using UnityEngine; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Globals/Set Int")] | ||
public class SetGlobalInt : SetLocalVariableBase<int> { | ||
[SerializeField] | ||
public KeyValueDefinitionInt _variable; | ||
|
||
protected override KeyValueDefinitionBase<int> Variable => _variable; | ||
|
||
protected override IKeyValueData<int> GetDatabase (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Ints; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using UnityEngine; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Globals/Set String")] | ||
public class SetGlobalString : SetLocalVariableBase<string> { | ||
[SerializeField] | ||
public KeyValueDefinitionString _variable; | ||
|
||
protected override KeyValueDefinitionBase<string> Variable => _variable; | ||
|
||
protected override IKeyValueData<string> GetDatabase (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Strings; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using CleverCrow.Fluid.Dialogues.Actions.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Conditions.Databases { | ||
[CreateMenu("Database/Globals/Is Bool")] | ||
public class IsGlobalBool : IsBoolBase { | ||
protected override IKeyValueData<bool> GetBoolInstance (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Bools; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using CleverCrow.Fluid.Dialogues.Actions.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Conditions.Databases { | ||
[CreateMenu("Database/Globals/Is Float")] | ||
public class IsGlobalFloat : IsFloatBase { | ||
protected override IKeyValueData<float> GetFloatInstance (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Floats; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using CleverCrow.Fluid.Dialogues.Actions.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Conditions.Databases { | ||
[CreateMenu("Database/Globals/Is Int")] | ||
public class IsGlobalInt : IsIntBase { | ||
protected override IKeyValueData<int> GetIntInstance (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Ints; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CleverCrow.Fluid.Databases; | ||
using CleverCrow.Fluid.Dialogues.Actions.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Conditions.Databases { | ||
[CreateMenu("Database/Globals/Is String")] | ||
public class IsGlobalString : IsStringBase { | ||
protected override IKeyValueData<string> GetStringInstance (IDialogueController dialogue) { | ||
return GlobalDatabaseManager.Instance.Database.Strings; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CleverCrow.Fluid.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Locals/Is Bool")] | ||
public class IsLocalBool : IsBoolBase { | ||
protected override IKeyValueData<bool> GetBoolInstance (IDialogueController dialogue) { | ||
return dialogue.LocalDatabase.Bools; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CleverCrow.Fluid.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Locals/Is Float")] | ||
public class ConditionLocalFloat : IsFloatBase { | ||
protected override IKeyValueData<float> GetFloatInstance (IDialogueController dialogue) { | ||
return dialogue.LocalDatabase.Floats; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CleverCrow.Fluid.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Locals/Is Int")] | ||
public class IsLocalInt : IsIntBase { | ||
protected override IKeyValueData<int> GetIntInstance (IDialogueController dialogue) { | ||
return dialogue.LocalDatabase.Ints; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CleverCrow.Fluid.Databases; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Actions.Databases { | ||
[CreateMenu("Database/Locals/Is String")] | ||
public class IsLocalString : IsStringBase { | ||
protected override IKeyValueData<string> GetStringInstance (IDialogueController dialogue) { | ||
return dialogue.LocalDatabase.Strings; | ||
} | ||
} | ||
} |