diff --git a/Capy64/.editorconfig b/Capy64/.editorconfig index be3a6e8..05f18fb 100644 --- a/Capy64/.editorconfig +++ b/Capy64/.editorconfig @@ -1,6 +1,6 @@ [*.{cs,vb,lua}] #### Top of file license comment -file_header_template = This file is part of Capy64 - https://github.com/Ale32bit/Capy64\nCopyright 2023 Alessandro "AlexDevs" Proto\n\nLicensed under the Apache License, Version 2.0 (the "License").\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License. +file_header_template = This file is part of Capy64 - https://github.com/Capy64/Capy64\nCopyright 2023 Alessandro "AlexDevs" Proto\n\nLicensed under the Apache License, Version 2.0 (the "License").\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License. [*.cs] #### Stili di denominazione #### diff --git a/Capy64/API/IComponent.cs b/Capy64/API/IComponent.cs index ab21111..61d670c 100644 --- a/Capy64/API/IComponent.cs +++ b/Capy64/API/IComponent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Capy64.cs b/Capy64/Capy64.cs index 63044d9..e1aeec7 100644 --- a/Capy64/Capy64.cs +++ b/Capy64/Capy64.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -41,8 +41,8 @@ public class Capy64 : Game, IGame "Capy64"); public static Capy64 Instance { get; private set; } public Capy64 Game => this; - public IList NativePlugins { get; private set; } - public IList Plugins { get; private set; } + public IList NativePlugins { get; private set; } + public IList Plugins { get; private set; } public int Width { get; set; } = 400; public int Height { get; set; } = 300; public float Scale { get; set; } = 2f; @@ -159,18 +159,18 @@ public class Capy64 : Game, IGame base.Initialize(); } - private List GetNativePlugins() + private List GetNativePlugins() { - var iType = typeof(IPlugin); + var iType = typeof(IComponent); var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(s => s.GetTypes()) .Where(p => iType.IsAssignableFrom(p) && !p.IsInterface); - var plugins = new List(); + var plugins = new List(); foreach (var type in types) { - var instance = (IPlugin)ActivatorUtilities.CreateInstance(_serviceProvider, type)!; + var instance = (IComponent)ActivatorUtilities.CreateInstance(_serviceProvider, type)!; plugins.Add(instance); } return plugins; diff --git a/Capy64/Core/Audio.cs b/Capy64/Core/Audio.cs index 71d3467..5e418c3 100644 --- a/Capy64/Core/Audio.cs +++ b/Capy64/Core/Audio.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Core/Drawing.cs b/Capy64/Core/Drawing.cs index 5141df4..18632b7 100644 --- a/Capy64/Core/Drawing.cs +++ b/Capy64/Core/Drawing.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Core/SDL.cs b/Capy64/Core/SDL.cs index f7c73b2..8a94ac9 100644 --- a/Capy64/Core/SDL.cs +++ b/Capy64/Core/SDL.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/EventEmitter.cs b/Capy64/Eventing/EventEmitter.cs index 5a02e4d..aba260b 100644 --- a/Capy64/Eventing/EventEmitter.cs +++ b/Capy64/Eventing/EventEmitter.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/CharEvent.cs b/Capy64/Eventing/Events/CharEvent.cs index 34c9405..2ff9e47 100644 --- a/Capy64/Eventing/Events/CharEvent.cs +++ b/Capy64/Eventing/Events/CharEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/GamePadButtonEvent.cs b/Capy64/Eventing/Events/GamePadButtonEvent.cs index ca409cd..916011e 100644 --- a/Capy64/Eventing/Events/GamePadButtonEvent.cs +++ b/Capy64/Eventing/Events/GamePadButtonEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/GamePadThumbstickEvent.cs b/Capy64/Eventing/Events/GamePadThumbstickEvent.cs index d2525a5..ca828c1 100644 --- a/Capy64/Eventing/Events/GamePadThumbstickEvent.cs +++ b/Capy64/Eventing/Events/GamePadThumbstickEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/GamePadTriggerEvent.cs b/Capy64/Eventing/Events/GamePadTriggerEvent.cs index ad98982..5afcbcc 100644 --- a/Capy64/Eventing/Events/GamePadTriggerEvent.cs +++ b/Capy64/Eventing/Events/GamePadTriggerEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/KeyEvent.cs b/Capy64/Eventing/Events/KeyEvent.cs index a8ce550..e203931 100644 --- a/Capy64/Eventing/Events/KeyEvent.cs +++ b/Capy64/Eventing/Events/KeyEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/MouseButtonEvent.cs b/Capy64/Eventing/Events/MouseButtonEvent.cs index cea5330..c610345 100644 --- a/Capy64/Eventing/Events/MouseButtonEvent.cs +++ b/Capy64/Eventing/Events/MouseButtonEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/MouseMoveEvent.cs b/Capy64/Eventing/Events/MouseMoveEvent.cs index 61a3efa..9d364e4 100644 --- a/Capy64/Eventing/Events/MouseMoveEvent.cs +++ b/Capy64/Eventing/Events/MouseMoveEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/MouseWheelEvent.cs b/Capy64/Eventing/Events/MouseWheelEvent.cs index d95579f..fc49061 100644 --- a/Capy64/Eventing/Events/MouseWheelEvent.cs +++ b/Capy64/Eventing/Events/MouseWheelEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/OverlayEvent.cs b/Capy64/Eventing/Events/OverlayEvent.cs index 66c7e1e..7787c96 100644 --- a/Capy64/Eventing/Events/OverlayEvent.cs +++ b/Capy64/Eventing/Events/OverlayEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/Events/TickEvent.cs b/Capy64/Eventing/Events/TickEvent.cs index a554f76..bd08ce3 100644 --- a/Capy64/Eventing/Events/TickEvent.cs +++ b/Capy64/Eventing/Events/TickEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Eventing/InputManager.cs b/Capy64/Eventing/InputManager.cs index 903d112..e850d43 100644 --- a/Capy64/Eventing/InputManager.cs +++ b/Capy64/Eventing/InputManager.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Extensions/Bindings/Common.cs b/Capy64/Extensions/Bindings/Common.cs index 3221690..f8dc827 100644 --- a/Capy64/Extensions/Bindings/Common.cs +++ b/Capy64/Extensions/Bindings/Common.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Extensions/Bindings/SDL2.cs b/Capy64/Extensions/Bindings/SDL2.cs index 55142b7..4937104 100644 --- a/Capy64/Extensions/Bindings/SDL2.cs +++ b/Capy64/Extensions/Bindings/SDL2.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Extensions/GameWindowExtensions.cs b/Capy64/Extensions/GameWindowExtensions.cs index bf4e8d4..ee903d8 100644 --- a/Capy64/Extensions/GameWindowExtensions.cs +++ b/Capy64/Extensions/GameWindowExtensions.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/IGame.cs b/Capy64/IGame.cs index adf2fc6..d0454ba 100644 --- a/Capy64/IGame.cs +++ b/Capy64/IGame.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Integrations/DiscordIntegration.cs b/Capy64/Integrations/DiscordIntegration.cs index 2181221..20ad634 100644 --- a/Capy64/Integrations/DiscordIntegration.cs +++ b/Capy64/Integrations/DiscordIntegration.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -27,7 +27,7 @@ using System.Threading.Tasks; namespace Capy64.Integrations; -public class DiscordIntegration : IPlugin +public class DiscordIntegration : IComponent { public DiscordRpcClient Client { get; private set; } private readonly IConfiguration _configuration; diff --git a/Capy64/PluginManager/PluginLoadContext.cs b/Capy64/PluginManager/PluginLoadContext.cs index 28b444f..e8b676e 100644 --- a/Capy64/PluginManager/PluginLoadContext.cs +++ b/Capy64/PluginManager/PluginLoadContext.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/PluginManager/PluginLoader.cs b/Capy64/PluginManager/PluginLoader.cs index f96118a..cf5e1f3 100644 --- a/Capy64/PluginManager/PluginLoader.cs +++ b/Capy64/PluginManager/PluginLoader.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -33,21 +33,21 @@ internal class PluginLoader return loadContext.LoadFromAssemblyName(new AssemblyName(Path.GetFileNameWithoutExtension(path))); } - public static List LoadAllPlugins(string pluginsPath, IServiceProvider provider) + public static List LoadAllPlugins(string pluginsPath, IServiceProvider provider) { if (!Directory.Exists(pluginsPath)) Directory.CreateDirectory(pluginsPath); - var plugins = new List(); + var plugins = new List(); foreach (var fileName in Directory.GetFiles(pluginsPath).Where(q => q.EndsWith(".dll"))) { var assembly = LoadPlugin(fileName); foreach (Type type in assembly.GetTypes()) { - if (typeof(IPlugin).IsAssignableFrom(type)) + if (typeof(IComponent).IsAssignableFrom(type)) { - IPlugin result = ActivatorUtilities.CreateInstance(provider, type) as IPlugin; + IComponent result = ActivatorUtilities.CreateInstance(provider, type) as IComponent; plugins.Add(result); } } diff --git a/Capy64/Program.cs b/Capy64/Program.cs index d3935f6..7689467 100644 --- a/Capy64/Program.cs +++ b/Capy64/Program.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Constants.cs b/Capy64/Runtime/Constants.cs index e182fbe..964758a 100644 --- a/Capy64/Runtime/Constants.cs +++ b/Capy64/Runtime/Constants.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/EventEmitter.cs b/Capy64/Runtime/EventEmitter.cs index 804ec04..6b63f96 100644 --- a/Capy64/Runtime/EventEmitter.cs +++ b/Capy64/Runtime/EventEmitter.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Extensions/Libraries.cs b/Capy64/Runtime/Extensions/Libraries.cs index 13727f4..5341e0b 100644 --- a/Capy64/Runtime/Extensions/Libraries.cs +++ b/Capy64/Runtime/Extensions/Libraries.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Extensions/NativeLibraries.cs b/Capy64/Runtime/Extensions/NativeLibraries.cs index 5202585..7c12a0c 100644 --- a/Capy64/Runtime/Extensions/NativeLibraries.cs +++ b/Capy64/Runtime/Extensions/NativeLibraries.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Extensions/Utils.cs b/Capy64/Runtime/Extensions/Utils.cs index ca08b85..cd401bf 100644 --- a/Capy64/Runtime/Extensions/Utils.cs +++ b/Capy64/Runtime/Extensions/Utils.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Libraries/Audio.cs b/Capy64/Runtime/Libraries/Audio.cs index 90696ee..0529c17 100644 --- a/Capy64/Runtime/Libraries/Audio.cs +++ b/Capy64/Runtime/Libraries/Audio.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/Libraries/Event.cs b/Capy64/Runtime/Libraries/Event.cs index dde9c5d..4236498 100644 --- a/Capy64/Runtime/Libraries/Event.cs +++ b/Capy64/Runtime/Libraries/Event.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -23,7 +23,7 @@ using System.Threading.Tasks; namespace Capy64.Runtime.Libraries; -public class Event : IPlugin +public class Event : IComponent { private static IGame _game; public Event(IGame game) diff --git a/Capy64/Runtime/Libraries/FileSystem.cs b/Capy64/Runtime/Libraries/FileSystem.cs index 9e3db4f..1146661 100644 --- a/Capy64/Runtime/Libraries/FileSystem.cs +++ b/Capy64/Runtime/Libraries/FileSystem.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -25,7 +25,7 @@ using Capy64.Runtime.Objects; namespace Capy64.Runtime.Libraries; -public class FileSystem : IPlugin +public class FileSystem : IComponent { public static string DataPath = Path.Combine(Capy64.AppDataPath, "data"); diff --git a/Capy64/Runtime/Libraries/GPU.cs b/Capy64/Runtime/Libraries/GPU.cs index 892011a..d6c0acc 100644 --- a/Capy64/Runtime/Libraries/GPU.cs +++ b/Capy64/Runtime/Libraries/GPU.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -24,7 +24,7 @@ using System.IO; namespace Capy64.Runtime.Libraries; -public class GPU : IPlugin +public class GPU : IComponent { private static IGame _game; diff --git a/Capy64/Runtime/Libraries/HTTP.cs b/Capy64/Runtime/Libraries/HTTP.cs index c6d1b96..b922295 100644 --- a/Capy64/Runtime/Libraries/HTTP.cs +++ b/Capy64/Runtime/Libraries/HTTP.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -28,7 +28,7 @@ using System.Threading; namespace Capy64.Runtime.Libraries; #nullable enable -public class HTTP : IPlugin +public class HTTP : IComponent { private static IGame _game; private static HttpClient _httpClient; diff --git a/Capy64/Runtime/Libraries/Machine.cs b/Capy64/Runtime/Libraries/Machine.cs index ceb93f3..55224d6 100644 --- a/Capy64/Runtime/Libraries/Machine.cs +++ b/Capy64/Runtime/Libraries/Machine.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -25,7 +25,7 @@ using System.Threading.Tasks; namespace Capy64.Runtime.Libraries; -public class Machine : IPlugin +public class Machine : IComponent { private static IGame _game; public Machine(IGame game) diff --git a/Capy64/Runtime/Libraries/OS.cs b/Capy64/Runtime/Libraries/OS.cs index 92effee..5802ab1 100644 --- a/Capy64/Runtime/Libraries/OS.cs +++ b/Capy64/Runtime/Libraries/OS.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -19,7 +19,7 @@ using System; namespace Capy64.Runtime.Libraries; -public class OS : IPlugin +public class OS : IComponent { private static IGame _game; public OS(IGame game) diff --git a/Capy64/Runtime/Libraries/Term.cs b/Capy64/Runtime/Libraries/Term.cs index 65c32e8..d98932a 100644 --- a/Capy64/Runtime/Libraries/Term.cs +++ b/Capy64/Runtime/Libraries/Term.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -26,7 +26,7 @@ using static System.Formats.Asn1.AsnWriter; namespace Capy64.Runtime.Libraries; -internal class Term : IPlugin +internal class Term : IComponent { private struct Char { diff --git a/Capy64/Runtime/Libraries/Timer.cs b/Capy64/Runtime/Libraries/Timer.cs index b9500a4..54ed8b8 100644 --- a/Capy64/Runtime/Libraries/Timer.cs +++ b/Capy64/Runtime/Libraries/Timer.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -21,7 +21,7 @@ using System.Collections.Generic; namespace Capy64.Runtime.Libraries; -class Timer : IPlugin +class Timer : IComponent { private LuaRegister[] TimerLib = new LuaRegister[] { diff --git a/Capy64/Runtime/LuaEvent.cs b/Capy64/Runtime/LuaEvent.cs index a44c60a..8adb1e3 100644 --- a/Capy64/Runtime/LuaEvent.cs +++ b/Capy64/Runtime/LuaEvent.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/LuaException.cs b/Capy64/Runtime/LuaException.cs index 3075d88..2d04d96 100644 --- a/Capy64/Runtime/LuaException.cs +++ b/Capy64/Runtime/LuaException.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/LuaState.cs b/Capy64/Runtime/LuaState.cs index cb16aac..3836463 100644 --- a/Capy64/Runtime/LuaState.cs +++ b/Capy64/Runtime/LuaState.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -75,7 +75,7 @@ public class LuaState : IDisposable private void InitPlugins() { - var allPlugins = new List(Capy64.Instance.NativePlugins); + var allPlugins = new List(Capy64.Instance.NativePlugins); allPlugins.AddRange(Capy64.Instance.Plugins); foreach (var plugin in allPlugins) { diff --git a/Capy64/Runtime/ObjectManager.cs b/Capy64/Runtime/ObjectManager.cs index c752e5c..da3dc13 100644 --- a/Capy64/Runtime/ObjectManager.cs +++ b/Capy64/Runtime/ObjectManager.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -26,7 +26,7 @@ using System.Threading.Tasks; namespace Capy64.Runtime; -public class ObjectManager : IPlugin +public class ObjectManager : IComponent { private static ConcurrentDictionary _objects = new(); diff --git a/Capy64/Runtime/Objects/FileHandle.cs b/Capy64/Runtime/Objects/FileHandle.cs index 0417641..58ec924 100644 --- a/Capy64/Runtime/Objects/FileHandle.cs +++ b/Capy64/Runtime/Objects/FileHandle.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -24,7 +24,7 @@ using System.Threading.Tasks; namespace Capy64.Runtime.Objects; -public class FileHandle : IPlugin +public class FileHandle : IComponent { public const string ObjectType = "file"; diff --git a/Capy64/Runtime/Objects/GPUBuffer.cs b/Capy64/Runtime/Objects/GPUBuffer.cs index 01a34cb..743dd62 100644 --- a/Capy64/Runtime/Objects/GPUBuffer.cs +++ b/Capy64/Runtime/Objects/GPUBuffer.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -20,7 +20,7 @@ using System.IO; namespace Capy64.Runtime.Objects; -public class GPUBuffer : IPlugin +public class GPUBuffer : IComponent { public const string ObjectType = "GPUBuffer"; diff --git a/Capy64/Runtime/Objects/WebSocketClient.cs b/Capy64/Runtime/Objects/WebSocketClient.cs index aeb543b..4bae376 100644 --- a/Capy64/Runtime/Objects/WebSocketClient.cs +++ b/Capy64/Runtime/Objects/WebSocketClient.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -23,7 +23,7 @@ using System.Threading; namespace Capy64.Runtime.Objects; -public class WebSocketClient : IPlugin +public class WebSocketClient : IComponent { public const string ObjectType = "WebSocketClient"; diff --git a/Capy64/Runtime/PanicScreen.cs b/Capy64/Runtime/PanicScreen.cs index 572051d..8cc1739 100644 --- a/Capy64/Runtime/PanicScreen.cs +++ b/Capy64/Runtime/PanicScreen.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Runtime/RuntimeManager.cs b/Capy64/Runtime/RuntimeManager.cs index a941920..0d5dfb6 100644 --- a/Capy64/Runtime/RuntimeManager.cs +++ b/Capy64/Runtime/RuntimeManager.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). @@ -30,7 +30,7 @@ using System.Threading.Tasks; namespace Capy64.Runtime; -internal class RuntimeManager : IPlugin +internal class RuntimeManager : IComponent { private LuaState luaState; private EventEmitter emitter; diff --git a/Capy64/Runtime/Sandbox.cs b/Capy64/Runtime/Sandbox.cs index d540a12..86b0c9f 100644 --- a/Capy64/Runtime/Sandbox.cs +++ b/Capy64/Runtime/Sandbox.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Utils.cs b/Capy64/Utils.cs index c6faae7..f94f090 100644 --- a/Capy64/Utils.cs +++ b/Capy64/Utils.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License"). diff --git a/Capy64/Worker.cs b/Capy64/Worker.cs index 5600877..cd67d20 100644 --- a/Capy64/Worker.cs +++ b/Capy64/Worker.cs @@ -1,4 +1,4 @@ -// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// This file is part of Capy64 - https://github.com/Capy64/Capy64 // Copyright 2023 Alessandro "AlexDevs" Proto // // Licensed under the Apache License, Version 2.0 (the "License").