Initial commit

This commit is contained in:
2026-03-08 14:18:29 -05:00
parent c360c027e1
commit 77490ae8df
18 changed files with 2037 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
require("ColorStruct")
---@class FactionStruct
---@field Name string Faction name.
---@field DisplayName string Display name.
---@field Color ColorStruct Color.
---@field Icon string Icon name.
---@field LandStartUnitName string Land starting unit name.
---@field SpaceStartUnitName string Space starting unit name.
FactionStruct = {}
FactionStruct.__index = FactionStruct
---Creates a new Faction struct.
---@param name string The internal faction name.
---@return FactionStruct
function FactionStruct:New(name)
local self = setmetatable({}, FactionStruct)
self.Name = name
self.DisplayName = name
self.Color = ColorStruct:New(1, 1, 1)
self.Icon = ""
self.LandStartUnitName = ""
self.SpaceStartUnitName = ""
return self
end
function FactionStruct:Debug()
return string.format("Faction %s (%s)", self.DisplayName, self.Name)
end