-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1b9a72
commit 0ebce5c
Showing
802 changed files
with
4,363 additions
and
1,401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": ".." | ||
} | ||
], | ||
"settings": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[CoreRedirects] | ||
+FunctionRedirects=(OldName="/Script/OmegaGameFramework.OmegaGameMode.local_activatePersistenSystems",NewName="/Script/OmegaGameFramework.OmegaGameMode.Local_ActivatePersistenSystems") | ||
+PropertyRedirects=(OldName="/Script/OmegaGameFramework.OmegaGrid3D_Tile.REF_Occupants",NewName="/Script/OmegaGameFramework.OmegaGrid3D_Tile.Occupants") | ||
+PropertyRedirects=(OldName="/Script/OmegaGameFramework.OmegaGrid3D_Tile.REF_Occupants",NewName="/Script/OmegaGameFramework.OmegaGrid3D_Tile.Occupants") | ||
+PropertyRedirects=(OldName="/Script/OmegaGameFramework.DynamicProgressMeter.Progress",NewName="/Script/OmegaGameFramework.DynamicProgressMeter.Percent_Progress") | ||
+PropertyRedirects=(OldName="/Script/OmegaGameFramework.DynamicProgressMeter.Percent",NewName="/Script/OmegaGameFramework.DynamicProgressMeter.Percent_Progress") | ||
+PropertyRedirects=(OldName="/Script/OmegaGameFramework.DynamicProgressMeter.GhostPercent",NewName="/Script/OmegaGameFramework.DynamicProgressMeter.Percent_Ghost") |
Binary file modified
BIN
+95 Bytes
(100%)
OmegaGameFramework/Content/Blueprints/Actors/OA_AutoMenu.uasset
Binary file not shown.
Binary file added
BIN
+57.5 KB
OmegaGameFramework/Content/Blueprints/Actors/OA_Blocking_Spline.uasset
Binary file not shown.
Binary file added
BIN
+28.7 KB
OmegaGameFramework/Content/Blueprints/Actors/OA_Blocking_Volume.uasset
Binary file not shown.
Binary file modified
BIN
-9.14 KB
(92%)
OmegaGameFramework/Content/Blueprints/Actors/OA_Chest.uasset
Binary file not shown.
Binary file modified
BIN
+18.4 KB
(140%)
OmegaGameFramework/Content/Blueprints/Actors/OA_Door.uasset
Binary file not shown.
Binary file modified
BIN
-963 Bytes
(100%)
OmegaGameFramework/Content/Blueprints/Actors/OA_Interactable_Transit.uasset
Binary file not shown.
Binary file modified
BIN
+42.9 KB
(120%)
OmegaGameFramework/Content/Blueprints/Actors/OA_MiniMount.uasset
Binary file not shown.
Binary file modified
BIN
+297 Bytes
(100%)
OmegaGameFramework/Content/Blueprints/Actors/OA_RandomizedMesh.uasset
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-156 KB
OmegaGameFramework/Content/Blueprints/Actors/OmegaActor_Switch.uasset
Binary file not shown.
Binary file modified
BIN
+6.4 KB
(100%)
OmegaGameFramework/Content/Blueprints/Actors/VolumeTrigger/VolumeTrigger_Dialog.uasset
Binary file not shown.
Binary file modified
BIN
+13.6 KB
(120%)
OmegaGameFramework/Content/Blueprints/Actors/VolumeTrigger/VolumeTrigger_GlobalEvent.uasset
Binary file not shown.
Binary file modified
BIN
+15.4 KB
(130%)
OmegaGameFramework/Content/Blueprints/Components/AutoRegisterGlobalBinding.uasset
Binary file not shown.
Binary file modified
BIN
+5.77 KB
(100%)
OmegaGameFramework/Content/Blueprints/Components/DialogueEvents.uasset
Binary file not shown.
Binary file modified
BIN
-746 Bytes
(99%)
OmegaGameFramework/Content/Blueprints/Components/Minimap_Indicator.uasset
Binary file not shown.
Binary file modified
BIN
+511 Bytes
(100%)
OmegaGameFramework/Content/Blueprints/Components/Pawn_Mountable.uasset
Binary file not shown.
Binary file modified
BIN
+16.2 KB
(110%)
...meFramework/Content/Blueprints/Components/_Combatant/Interact/InteractEvent_Dialog.uasset
Binary file not shown.
Binary file modified
BIN
-9.81 KB
(95%)
OmegaGameFramework/Content/Blueprints/Components/_Combatant/LuaCombatant.uasset
Binary file not shown.
Binary file modified
BIN
+78.5 KB
(130%)
OmegaGameFramework/Content/Blueprints/Components/_Combatant/Save_Combatant.uasset
Binary file not shown.
Binary file modified
BIN
+5.4 KB
(110%)
OmegaGameFramework/Content/Blueprints/Functions/F_LuaBP_Hooks.uasset
Binary file not shown.
Binary file removed
BIN
-68.1 KB
OmegaGameFramework/Content/Blueprints/Functions/OmegaFunctions_Assets.uasset
Binary file not shown.
Binary file modified
BIN
+20.3 KB
(110%)
OmegaGameFramework/Content/Blueprints/Macros/Macros_UserWidgets.uasset
Binary file not shown.
Binary file modified
BIN
-519 Bytes
(100%)
OmegaGameFramework/Content/Blueprints/Macros/OmegaMacros_Object.uasset
Binary file not shown.
Binary file modified
BIN
-1.85 KB
(96%)
OmegaGameFramework/Content/Blueprints/Macros/mac_Trace.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1.45 KB
(99%)
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_Interact.uasset
Binary file not shown.
Binary file modified
BIN
+12.3 KB
(110%)
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_InteractCameraCenter.uasset
Binary file not shown.
Binary file modified
BIN
+33.4 KB
(230%)
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_Sprint.uasset
Binary file not shown.
Binary file added
BIN
+57.7 KB
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_SwimFlat.uasset
Binary file not shown.
Binary file modified
BIN
-1.01 KB
(100%)
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_TBC-Action.uasset
Binary file not shown.
Binary file modified
BIN
+4.03 KB
(100%)
OmegaGameFramework/Content/DEMO/Abilities/DemoAbility_TBC-Target.uasset
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+19.3 KB
(170%)
OmegaGameFramework/Content/DEMO/ActorSelector/ActorSelector_Soft.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+325 KB
OmegaGameFramework/Content/DEMO/Animation/AT_LocomotionVertical.uasset
Binary file not shown.
Binary file modified
BIN
+953 Bytes
(150%)
OmegaGameFramework/Content/DEMO/Animation/Emotes/Emote_No.uasset
Binary file not shown.
Binary file modified
BIN
+380 Bytes
(110%)
OmegaGameFramework/Content/DEMO/Animation/Emotes/Emote_Sit.uasset
Binary file not shown.
Binary file added
BIN
+2.91 KB
OmegaGameFramework/Content/DEMO/Animation/Emotes/Emote_Talking.uasset
Binary file not shown.
Binary file modified
BIN
+960 Bytes
(150%)
OmegaGameFramework/Content/DEMO/Animation/Emotes/Emote_Yes.uasset
Binary file not shown.
Binary file modified
BIN
+2.28 KB
(110%)
OmegaGameFramework/Content/DEMO/Animation/Emotes/Scripts/EmoteScript_Common.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
OmegaGameFramework/Content/DEMO/Attributes/Scripts/AttributeScript_CUstomCurve.uasset
Binary file not shown.
Binary file modified
BIN
+31.1 KB
(200%)
OmegaGameFramework/Content/DEMO/Attributes/Scripts/AttributeScript_FloatCurve.uasset
Binary file not shown.
Binary file modified
BIN
-1.36 KB
(99%)
OmegaGameFramework/Content/DEMO/Choice/OmegaDemo_Choice_Instance.uasset
Binary file not shown.
Binary file modified
BIN
+1.15 KB
(100%)
OmegaGameFramework/Content/DEMO/ControlRig/CR_Anim_Mannequin_M.uasset
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
OmegaGameFramework/Content/DEMO/DamageType/DT_c_Dark.uasset
Binary file not shown.
Binary file modified
BIN
+188 Bytes
(110%)
OmegaGameFramework/Content/DEMO/DamageType/DT_c_Light.uasset
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
OmegaGameFramework/Content/DEMO/DamageType/DT_m_Earth.uasset
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
OmegaGameFramework/Content/DEMO/DamageType/DT_m_Fire.uasset
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
OmegaGameFramework/Content/DEMO/DamageType/DT_m_Water.uasset
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
OmegaGameFramework/Content/DEMO/DamageType/DT_m_Wind.uasset
Binary file not shown.
Binary file modified
BIN
+186 Bytes
(110%)
OmegaGameFramework/Content/DEMO/DamageType/DT_p_bash.uasset
Binary file not shown.
Binary file modified
BIN
+186 Bytes
(110%)
OmegaGameFramework/Content/DEMO/DamageType/DT_p_pirece.uasset
Binary file not shown.
Binary file modified
BIN
+186 Bytes
(110%)
OmegaGameFramework/Content/DEMO/DamageType/DT_p_slash.uasset
Binary file not shown.
Binary file modified
BIN
+186 Bytes
(110%)
OmegaGameFramework/Content/DEMO/DamageType/DT_x_physical.uasset
Binary file not shown.
Binary file modified
BIN
+1.36 KB
(110%)
OmegaGameFramework/Content/DEMO/DataAssets/DA_OmegaDebugProfile.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.13 KB
OmegaGameFramework/Content/DEMO/Effects/Collections/SEC_NormalDamage_Mag.uasset
Binary file not shown.
Binary file added
BIN
+3.13 KB
OmegaGameFramework/Content/DEMO/Effects/Collections/SEC_NormalDamage_Phy.uasset
Binary file not shown.
Binary file modified
BIN
-7.55 KB
(92%)
OmegaGameFramework/Content/DEMO/Effects/OmegaEffect_Lua_Impact.uasset
Binary file not shown.
Binary file modified
BIN
+17.8 KB
(140%)
OmegaGameFramework/Content/DEMO/Effects/Scripts/EffectScript_Lua.uasset
Binary file not shown.
Binary file modified
BIN
+1.13 KB
(100%)
OmegaGameFramework/Content/DEMO/Encounter/enc_Omega_Trash.uasset
Binary file not shown.
Binary file modified
BIN
+57.4 KB
(250%)
OmegaGameFramework/Content/DEMO/Environment/Scripts/EnvironmentScript_Fog.uasset
Binary file not shown.
Binary file modified
BIN
+9.71 KB
(110%)
OmegaGameFramework/Content/DEMO/Environment/Scripts/EnvironmentScript_PostProcess.uasset
Binary file not shown.
Binary file modified
BIN
+38.8 KB
(170%)
OmegaGameFramework/Content/DEMO/Environment/Scripts/EnvironmentScript_Sky.uasset
Binary file not shown.
Binary file modified
BIN
+23.3 KB
(160%)
OmegaGameFramework/Content/DEMO/Environment/Scripts/EnvironmentScript_SkyBox.uasset
Binary file not shown.
Binary file modified
BIN
+1007 Bytes
(150%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Accessory_1.uasset
Binary file not shown.
Binary file modified
BIN
+1007 Bytes
(150%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Accessory_2.uasset
Binary file not shown.
Binary file modified
BIN
+1007 Bytes
(150%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Accessory_3.uasset
Binary file not shown.
Binary file modified
BIN
+312 Bytes
(110%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Armor.uasset
Binary file not shown.
Binary file modified
BIN
+312 Bytes
(110%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Torso.uasset
Binary file not shown.
Binary file modified
BIN
+869 Bytes
(130%)
OmegaGameFramework/Content/DEMO/Equipment/EquipSlot_Weapon.uasset
Binary file not shown.
Binary file modified
BIN
+20 Bytes
(100%)
OmegaGameFramework/Content/DEMO/Equipment/Scripts/EquipScript_Asset.uasset
Binary file not shown.
Binary file added
BIN
+7.17 KB
OmegaGameFramework/Content/DEMO/Equipment/Scripts/EquipScript_ChildActor.uasset
Binary file not shown.
Binary file modified
BIN
-106 KB
(6.2%)
OmegaGameFramework/Content/DEMO/Equipment/Scripts/EquipScript_Lua.uasset
Binary file not shown.
Binary file added
BIN
+75.1 KB
OmegaGameFramework/Content/DEMO/Equipment/Scripts/EquipSlotScript_ChildActor.uasset
Binary file not shown.
Binary file added
BIN
+51.1 KB
OmegaGameFramework/Content/DEMO/FileImportScript/FileImport_DataAsset.uasset
Binary file not shown.
Binary file modified
BIN
-5.66 KB
(80%)
OmegaGameFramework/Content/DEMO/FileImportScript/FileImport_Image.uasset
Binary file not shown.
Binary file modified
BIN
+10.7 KB
(160%)
OmegaGameFramework/Content/DEMO/FileImportScript/FileImport_Sound.uasset
Binary file not shown.
Binary file added
BIN
+79.7 KB
OmegaGameFramework/Content/DEMO/Flow/FN_DataAssets_HaveSaveTags.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+3.36 KB
(110%)
OmegaGameFramework/Content/DEMO/Flow/FN_Save_AssetTag.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-114 KB
OmegaGameFramework/Content/DEMO/HUD/OmegaDemo_HUD_Exploration.uasset
Binary file not shown.
Binary file renamed
BIN
+70.8 KB
...MO/HUD/OmegaDemo_HUD_AbilityAction.uasset → ...nt/DEMO/HUD/OmegaHUD_AbilityAction.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+20.8 KB
...HUD/OmegaDemo_HUD_Dialog_Cinematic.uasset → ...DEMO/HUD/OmegaHUD_Dialog_Cinematic.uasset
Binary file not shown.
Binary file renamed
BIN
+29.5 KB
...MO/HUD/OmegaDemo_HUD_Dialog_Listed.uasset → ...nt/DEMO/HUD/OmegaHUD_Dialog_Listed.uasset
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+66 KB
...ontent/DEMO/HUD/OmegaDemo_HUD_Load.uasset → ...ork/Content/DEMO/HUD/OmegaHUD_Load.uasset
Binary file not shown.
Binary file renamed
BIN
+41 KB
...nt/DEMO/HUD/OmegaDemo_HUD_LoadBack.uasset → ...Content/DEMO/HUD/OmegaHUD_LoadBack.uasset
Binary file not shown.
Binary file renamed
BIN
+70 KB
...t/DEMO/HUD/OmegaDemo_HUD_LoadEvemt.uasset → ...ontent/DEMO/HUD/OmegaHUD_LoadEvemt.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+427 Bytes
(120%)
OmegaGameFramework/Content/DEMO/Input/Actions/OIA_UI_Confim.uasset
Binary file not shown.
Binary file added
BIN
+100 KB
OmegaGameFramework/Content/DEMO/InstanceActor/Omega_InstanceActor_Affinity.uasset
Binary file not shown.
Binary file added
BIN
+88.6 KB
OmegaGameFramework/Content/DEMO/InstanceActor/Omega_InstanceActor_BattleResultant.uasset
Binary file not shown.
Binary file modified
BIN
+95 KB
(150%)
OmegaGameFramework/Content/DEMO/InstanceActor/Omega_InstanceActor_Party.uasset
Binary file not shown.
Binary file modified
BIN
+30.9 KB
(110%)
OmegaGameFramework/Content/DEMO/InstanceActor/Omega_InstanceActor_Quest.uasset
Binary file not shown.
Binary file modified
BIN
+1.41 KB
(100%)
OmegaGameFramework/Content/DEMO/LinearEvents/LE_DialogueMessage.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+18.7 KB
(130%)
OmegaGameFramework/Content/DEMO/LinearEvents/LE_HUDLayers.uasset
Binary file not shown.
Binary file modified
BIN
+16.5 KB
(110%)
OmegaGameFramework/Content/DEMO/LinearEvents/LE_Lua_EventSequence.uasset
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+65.8 KB
OmegaGameFramework/Content/DEMO/LinearEvents/LE_Save_EditAssetTags.uasset
Binary file not shown.
Binary file modified
BIN
+3.86 KB
(110%)
...ramework/Content/DEMO/LinearEvents/VolumeTrigger/Trigger/EvTrigScript_ActorOverlap.uasset
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
OmegaGameFramework/Content/DEMO/Lua/OmegaLua/.vscode/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"Lua.diagnostics.disable": [ | ||
"assign-type-mismatch" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
OmegaGameFramework/Content/DEMO/Lua/OmegaLua/Lib/lib_localization.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
local a={} | ||
|
||
a._config={ | ||
default_language='en' | ||
} | ||
|
||
|
||
--[[ | ||
Adds a new localization value to a single text field. | ||
* IF the field is TABLE: Simply addes the now value key | ||
* IF the field is STRING: converts the field to a table, with the string as the value for the ``default_language`` in ``_config`` | ||
]] | ||
|
||
--- func desc | ||
---@param field any | ||
---@param injected_language string | ||
---@param injected_text string | ||
---@return table | ||
a.Inject_SingleText=function (field,injected_language,injected_text) | ||
if type(field)=='string' then | ||
local sav_str=field | ||
field={} | ||
field[a._config.default_language]=sav_str | ||
field[injected_language]=injected_text | ||
elseif type(field)=='table' then | ||
field[injected_language]=injected_text | ||
end | ||
return field | ||
end | ||
|
||
|
||
|
||
-- Localiztion Library | ||
SynLoc=a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
OmegaGameFramework/Content/DEMO/Lua/OmegaLua/components/comps.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
local c={} | ||
|
||
-- ============================================== | ||
-- Attributes | ||
-- ============================================== | ||
c.Attributes=function () | ||
return { | ||
attribute_values={}, | ||
|
||
GetValue_Base=function (self,attribute) | ||
return 0 | ||
end, | ||
GetValue_Max=function (self,attribute) | ||
return 0 | ||
end, | ||
GetValue_Current=function (self,attribute) | ||
return 0 | ||
end, | ||
|
||
DamageAttribute=function (self,attribute,damage_amount,meta) | ||
self.attribute_values[attribute]=self:GetValue_Current(attribute)-damage_amount | ||
end, | ||
} | ||
end | ||
|
||
local att=c.Attributes() | ||
|
||
|
||
-- ============================================== | ||
-- Equipment | ||
-- ============================================== | ||
c.Equipment=function () | ||
return { | ||
equipment={}, | ||
|
||
GetItemInSlot=function (self,slot) | ||
return self.equipment[slot] | ||
end, | ||
|
||
EquipItem=function (self,item,slot) | ||
self:UnequipSlot(slot) | ||
self.equipment[slot]=item | ||
end, | ||
|
||
UnequipItem=function (self,item,all) | ||
for key, value in pairs(self.equipment) do | ||
if self:GetItemInSlot(key)==item then | ||
self:UnequipSlot(key) | ||
if not all then | ||
return | ||
end | ||
end | ||
end | ||
end, | ||
|
||
UnequipSlot=function (self,slot) | ||
self.equipment[slot]='' | ||
end, | ||
} | ||
end | ||
|
||
local eq=c:Equipment() | ||
|
||
eq:EquipItem('sword_1','weapon') | ||
|
||
-- ============================================== | ||
-- Equipment | ||
-- ============================================== | ||
c.Inventory=function () | ||
return { | ||
items={}, | ||
GetItemAmount=function (self,item) | ||
return SynLit.INT(self.items[item]) | ||
end, | ||
AddItem=function (self,item,amount) | ||
self.items[item]=self:GetItemAmount(item)+amount | ||
end, | ||
} | ||
end | ||
|
||
|
||
-- ============================================== | ||
-- Turn Manager | ||
-- ============================================== | ||
c.TurnManager=function () | ||
return { | ||
turn_order={}, | ||
combatants={}, | ||
NextTurn=function () | ||
|
||
end, | ||
Generate_TurnOrder=function () | ||
|
||
end | ||
} | ||
end | ||
|
||
|
||
local ev={ | ||
menu=function (options,postition,size,on_close) | ||
|
||
end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
OmegaGameFramework/Content/DEMO/Lua/OmegaLua/src/SYS_Cooking.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
local a={} | ||
|
||
|
||
local _getSav=function () | ||
if _SAV.recipes==nil then | ||
_SAV.recipes={} | ||
end | ||
return _SAV.recipes | ||
end | ||
|
||
a.CanCookItem=function (item) | ||
|
||
end | ||
|
||
|
||
a.Recipe_IsOwned=function (recipe) | ||
return SynLit.BOOL(SynTable.has_value(_getSav(),recipe)) | ||
end | ||
|
||
a.Recipe_SetOwned=function (recipe,owned) | ||
if owned~=a.Recipe_IsOwned(recipe) then | ||
if owned then | ||
table.insert(_getSav(),recipe) | ||
else | ||
SynTable.remove_value(_getSav(),recipe) | ||
end | ||
end | ||
end | ||
|
||
a.Recipe_GetOwnedList=function () | ||
return _getSav() | ||
end | ||
|
||
|
||
_A.Cooking=a | ||
|
46 changes: 46 additions & 0 deletions
46
OmegaGameFramework/Content/DEMO/Lua/OmegaLua/src/SYS_Events.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
local active_events={} | ||
|
||
|
||
local a={} | ||
|
||
|
||
--- func desc | ||
---@param event_sequence table | ||
---@param end_callback function | ||
---@return table | ||
a.Play=function (event_sequence,end_callback) | ||
return { | ||
sequence=event_sequence, | ||
current_event=1, | ||
|
||
GetCurrent=function (self) | ||
return self.sequence[self.current_event] | ||
end, | ||
|
||
Next=function (self) | ||
if (self.sequence[self.current_event]) then | ||
self.GetCurrent():ON_END(self) | ||
end | ||
|
||
local next_event=self.current_event+1 | ||
|
||
if (self.sequence[next_event]) then | ||
self.current_event=next_event | ||
self.GetCurrent():ON_START(self) | ||
else | ||
self.END('_FINISHED_') | ||
end | ||
end, | ||
|
||
End=function (reason) | ||
end_callback(reason) | ||
end | ||
} | ||
end | ||
|
||
|
||
_A.Event=a | ||
|
||
-- ========================================== | ||
-- Events | ||
-- ========================================== |
Oops, something went wrong.