Compare commits

...

3 Commits

Author SHA1 Message Date
67278b9ba7 unknown commit 2023-07-24 18:34:29 +02:00
243937a293 Init Function 2023-06-14 15:17:40 +02:00
5e637da68f Set Default Branch Configuration 2023-06-14 14:45:30 +02:00
4 changed files with 58 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"$className": "DataModel",
"ServerScriptService": {
"MarcSync": {
"MarcSync-feature/SetupManager": {
"$path": "src/MarcSync"
}
}

View File

@ -0,0 +1,17 @@
-- VARIABLES
local MarcSync = script.Parent.Parent
local SetupManager = {}
function SetupManager.checkInstallation()
if not MarcSync:FindFirstChild("Plugins") or not MarcSync:FindFirstChild("Plugins"):IsA("Folder") then return end
end
function SetupManager._new()
local self = setmetatable({}, SetupManager)
return self
end
return SetupManager

View File

@ -0,0 +1,39 @@
local MarcSync = script.Parent.Parent.Parent
type MarcSyncClient = typeof(require(MarcSync.Types.MARCSYNC_CLIENT))
local TestPlugin = {}
TestPlugin.Config = {
Name = "TestPlugin",
Description = "A Test Plugin",
Author = "Marc",
Version = "0.0.1",
Support = {
URL = "https://marcsync.dev",
Email = "test@example.com"
},
Setup = {
MarcSyncVersions = { "0.5.0" },
SetupAPIVersion = "v1",
Variables = {
TestVariable = {
Type = "string",
Required = true,
Default = "Hello World!",
Description = "A Test Variable"
},
TestVariable2 = {
Type = "number",
Required = false,
Description = "A Test Variable"
}
}
}
}
function TestPlugin.init(client: MarcSyncClient)
end
return TestPlugin

View File

@ -0,0 +1 @@
return require(script.Parent.Parent["MarcSyncv0.5"])