Skip to content

Commit

Permalink
Add MIT license to various FAF-made files (FAForever#4395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hdt80bro authored Jan 31, 2023
1 parent eae6f34 commit a9eeb98
Show file tree
Hide file tree
Showing 18 changed files with 70 additions and 7 deletions.
3 changes: 3 additions & 0 deletions engine/AnnotationCommon.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************
---@meta

---@alias nonnil boolean | number | thread | table | string | userdata | lightuserdata | function
Expand Down
3 changes: 3 additions & 0 deletions engine/Core/EntityCategory.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************
---@meta

---@class EntityCategory : userdata, moho.EntityCategory
Expand Down
3 changes: 3 additions & 0 deletions engine/Enums.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************
---@meta

-- the game can add arbitrary caps, so these are just the ones hardcoded into the engine
Expand Down
3 changes: 3 additions & 0 deletions engine/Library.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************
---@meta

-- This file annotates the differences that our distribution of the Lua standard libary has with
Expand Down
4 changes: 4 additions & 0 deletions lua/shared/MapUtilities.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

--- A lookup table for various types of threat and their corresponding color, shared between the sim and the UI
ThreatInformation = {
{ identifier = "Overall", color = "c0c0c0" }
Expand Down
4 changes: 4 additions & 0 deletions lua/shared/Profiler.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

--- Constructs an empty table that the profiler can populate.
function CreateEmptyProfilerTable()
return {
Expand Down
3 changes: 3 additions & 0 deletions lua/shared/RecallParams.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

--- ticks before a player can start the first recall vote (5 minutes)
PlayerGateCooldown = 5 * 60 * 10
Expand Down
2 changes: 1 addition & 1 deletion lua/shared/color.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--**************************************************************************************************
--** Copyleft  2022 Forged Alliance Forever - shared under the GPL V3 license
--** Shared under the MIT license
--**************************************************************************************************
--
-- Color library for Moho Lua (based on LuaPlus 5.0)
Expand Down
4 changes: 4 additions & 0 deletions lua/sim/MapUtilities.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local MarkerUtilities = import("/lua/sim/markerutilities.lua")
local MapResourceCheckApplied = false

Expand Down
5 changes: 5 additions & 0 deletions lua/sim/MarkerUtilities.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

-----------------------------------------------------------------
-- File : /lua/sim/MarkerUtilities.lua
-- Summary : Aim of this file is to work with markers without
Expand Down
3 changes: 3 additions & 0 deletions lua/sim/MatchState.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local SyncGameResult = import("/lua/simsyncutils.lua").SyncGameResult

Expand Down
5 changes: 5 additions & 0 deletions lua/sim/Profiler.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

-- Useful sources to read:
-- https://www.lua.org/pil/23.1.html

Expand Down
3 changes: 3 additions & 0 deletions lua/sim/Recall.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

-- import recall parameters
doscript "/lua/shared/RecallParams.lua"
Expand Down
4 changes: 4 additions & 0 deletions lua/ui/game/MapUtilities.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local UIUtil = import("/lua/ui/uiutil.lua")
local LayoutHelpers = import("/lua/maui/layouthelpers.lua")

Expand Down
5 changes: 5 additions & 0 deletions lua/ui/game/Profiler.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local UIUtil = import("/lua/ui/uiutil.lua")
local LayoutHelpers = import("/lua/maui/layouthelpers.lua")
local Group = import("/lua/maui/group.lua").Group
Expand Down
4 changes: 4 additions & 0 deletions lua/ui/game/recall.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local LayoutHelpers = import("/lua/maui/layouthelpers.lua")
local NinePatch = import("/lua/ui/controls/ninepatch.lua")
local Prefs = import("/lua/user/prefs.lua")
Expand Down
15 changes: 9 additions & 6 deletions tests/luft.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
-- lust v0.1.0 - Lua test framework
-- https://github.com/bjornbytes/lust
-- MIT LICENSE
--
-- Modified by Askaholic for lua 5.0
-- Extended by Hdt80bro
--**************************************************************************************************
--** lust v0.1.0 - Lua test framework
--** https://github.com/bjornbytes/lust - shared under the MIT license
--**
--** Modified by Askaholic for lua 5.0
--**
--** Extended by Hdt80bro from the "lust" version to the "luft" version and renamed for
--** clarification
--**************************************************************************************************

-- Useful for better test output
require "../lua/system/repr.lua"
Expand Down
4 changes: 4 additions & 0 deletions tests/test_colors.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
--**************************************************************************************************
--** Shared under the MIT license
--**************************************************************************************************

local luft = require "luft"

-- color library
Expand Down

0 comments on commit a9eeb98

Please sign in to comment.