This repository has been archived by the owner on May 6, 2024. It is now read-only.
forked from jakubg1/OpenSMCE
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f830d1
commit 0d9f500
Showing
3 changed files
with
53 additions
and
2 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,31 @@ | ||
local class = require "com/class" | ||
|
||
---@class Power | ||
---@overload fun(data):Power | ||
local Power = class:derive("Power") | ||
|
||
local Profile = require("src/Profile") | ||
|
||
|
||
|
||
---Initialize a new Power. | ||
---@param data table Raw data parsed from `config/powers/*.json`. | ||
---@param path string Path to the file. The file is not loaded here, but is used in error messages. | ||
function Power:new(data, path) | ||
self.name = data.name | ||
self._path = path | ||
self.displayName = data.displayName | ||
self.type = data.type | ||
end | ||
|
||
|
||
|
||
function Power:isEquipped() | ||
for i, power in ipairs(_Game:getCurrentProfile().equippedPowers) do | ||
|
||
end | ||
end | ||
|
||
|
||
|
||
return Power |
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