-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added first steps for mod registering
- Loading branch information
Showing
5 changed files
with
85 additions
and
3 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
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,6 @@ | ||
---Prisma API Bridge | https://github.com/Lonaasan/Prisma/blob/main/Prisma/prisma/api/bridge.lua | ||
---Author: Lonaasan | ||
|
||
string.prisma = string.prisma or {}; | ||
string.prisma.api = string.prisma.api or {}; | ||
string.prisma.api.bridge = {}; |
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,26 @@ | ||
---Prisma API Registry | https://github.com/Lonaasan/Prisma/blob/main/Prisma/prisma/api/registry.lua | ||
---Author: Lonaasan | ||
|
||
string.prisma = string.prisma or {}; | ||
string.prisma.api = string.prisma.api or {}; | ||
string.prisma.api.registry = string.prisma.api.registry or {}; | ||
string.prisma.api.registry.mods = string.prisma.api.registry.mods or {}; | ||
|
||
prismaAPIRegistry = {}; | ||
|
||
local prismaAPIRegistryStorage = {}; | ||
|
||
function prismaAPIRegistry.registerMods() | ||
for modName, mod in pairs(string.prisma.api.registry.mods) do | ||
string.prisma.debug.log.info("Registering mod: " .. modName); | ||
string.prisma.debug.log.info("Mod: " .. mod); | ||
prismaAPIRegistryStorage[modName] = mod; | ||
end | ||
end | ||
|
||
function prismaAPIRegistry.getMods() | ||
for modName, mod in pairs(prismaAPIRegistryStorage) do | ||
string.prisma.debug.log.info("Stored mod: " .. modName); | ||
string.prisma.debug.log.info("Mod: " .. mod); | ||
end | ||
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
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