Spdx license (#109)

在所有代码中添加了许可证标记头
This commit is contained in:
notify 2023-04-09 13:35:35 +08:00 committed by GitHub
parent b0c2855389
commit 9a951fdbfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
252 changed files with 501 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(FreeKill VERSION 0.0.7) project(FreeKill VERSION 0.0.7)

View File

@ -1,4 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- SPDX-License-Identifier: GPL-3.0-or-later !-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.notify.FreeKill" package="org.notify.FreeKill"
android:installLocation="preferExternal" android:installLocation="preferExternal"

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
rm -rf res/mipmap assets rm -rf res/mipmap assets

View File

@ -1,3 +1,4 @@
<!-- SPDX-License-Identifier: GPL-3.0-or-later !-->
<resources> <resources>
<style name="FkTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen"> <style name="FkTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowEnableSplitTouch">false</item> <item name="android:windowEnableSplitTouch">false</item>

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
package org.notify.FreeKill; package org.notify.FreeKill;
import android.app.Activity; import android.app.Activity;

View File

@ -1,2 +1,4 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Client Client
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Core Core
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Card Card
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Engine Engine
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
GameMode GameMode
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
General General
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Package Package
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Player Player
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Skill Skill
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
API文档 API文档
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Server Server
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Room Room
============= =============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FreeKill 的 AI 系统 FreeKill 的 AI 系统
=================== ===================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
编译 FreeKill 编译 FreeKill
============= =============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FreeKill 的数据库 FreeKill 的数据库
================= =================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Fk的游戏事件 Fk的游戏事件
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
游戏逻辑 游戏逻辑
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Dev文档 Dev文档
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FreeKill 的包管理策略 FreeKill 的包管理策略
===================== =====================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FreeKill 的通信 FreeKill 的通信
=============== ===============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
关于扩展FreeKill玩法的思考 关于扩展FreeKill玩法的思考
========================== ==========================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
TODO list TODO list
========= =========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FreeKill 的UI FreeKill 的UI
============= =============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Fk DIY - 环境搭建 Fk DIY - 环境搭建
================= =================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
fk技能类型总览 fk技能类型总览
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
fk中的游戏事件 fk中的游戏事件
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
创建武将并添加技能 创建武将并添加技能
================== ==================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
创建新技能 创建新技能
========== ==========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
技能解析:触发技 技能解析:触发技
====================== ======================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
技能解析:主动技 技能解析:主动技
================ ================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
与游戏流程有关的事件 与游戏流程有关的事件
==================== ====================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
与体力值相关的事件 与体力值相关的事件
================== ==================

View File

@ -1,2 +1,4 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
杂项事件 杂项事件
============= =============

View File

@ -1,2 +1,4 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
移动牌相关的事件 移动牌相关的事件
===================== =====================

View File

@ -1,2 +1,4 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
使用牌相关的事件 使用牌相关的事件
==================== ====================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
Diy文档 Diy文档
=============== ===============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
添加更多的动作语句 添加更多的动作语句
================== ==================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
编译fkparse 编译fkparse
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
fkparse的运行原理 fkparse的运行原理
================= =================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FKP开发者指南 FKP开发者指南
============= =============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
所有的动作语句 所有的动作语句
============== ==============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
所有触发时机 所有触发时机
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
所有的预定义函数 所有的预定义函数
================ ================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
所有词法单元 所有词法单元
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
类型可以获取的属性 类型可以获取的属性
================== ==================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
所有的预定义变量 所有的预定义变量
================ ================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
关键词中英文对照 关键词中英文对照
================ ================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FKP参考手册 FKP参考手册
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
主动技能 主动技能
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
基本语法 基本语法
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
创建武将 创建武将
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
创建技能 创建技能
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
表达式和语句 表达式和语句
============ ============

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
函数定义和调用,以及数组 函数定义和调用,以及数组
======================== ========================

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
开始使用 开始使用
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
FKP用户指南 FKP用户指南
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
fkparse简介 fkparse简介
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
状态技 状态技
====== ======

View File

@ -1 +1,3 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
视为技能 视为技能
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
.. FreeKill documentation master file, created by .. FreeKill documentation master file, created by
sphinx-quickstart on Sun Mar 26 02:58:53 2023. sphinx-quickstart on Sun Mar 26 02:58:53 2023.
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#!/bin/bash #!/bin/bash
TEX_FILE=manual.tex TEX_FILE=manual.tex

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
下载FK 下载FK
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
游玩FK 游玩FK
======== ========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
联机游玩FK 联机游玩FK
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
拓展包管理 拓展包管理
=========== ===========

View File

@ -1,3 +1,5 @@
.. SPDX-License-Identifier: GFDL-1.3-or-later
入门FK 入门FK
======== ========

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class Client ---@class Client
---@field public client fk.Client ---@field public client fk.Client
---@field public players ClientPlayer[] ---@field public players ClientPlayer[]

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
-- All functions in this file are used by Qml -- All functions in this file are used by Qml
function Translate(src) function Translate(src)

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class ClientPlayer: Player ---@class ClientPlayer: Player
---@field public player fk.Player ---@field public player fk.Player
---@field public known_cards integer[] ---@field public known_cards integer[]

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
Fk:loadTranslationTable({ Fk:loadTranslationTable({
-- Lobby -- Lobby
-- ["Room List"] = "房间列表", -- ["Room List"] = "房间列表",

View File

@ -1,2 +1,4 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
dofile "lua/client/i18n/zh_CN.lua" dofile "lua/client/i18n/zh_CN.lua"
dofile "lua/client/i18n/en_US.lua" dofile "lua/client/i18n/en_US.lua"

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
Fk:loadTranslationTable{ Fk:loadTranslationTable{
-- Lobby -- Lobby
["Room List"] = "房间列表", ["Room List"] = "房间列表",

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
--- Card记录了FreeKill所有卡牌的基础信息。 --- Card记录了FreeKill所有卡牌的基础信息。
--- ---
--- 它包含了ID、所属包、牌名、花色、点数等等 --- 它包含了ID、所属包、牌名、花色、点数等等

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class BasicCard : Card ---@class BasicCard : Card
local BasicCard = Card:subclass("BasicCard") local BasicCard = Card:subclass("BasicCard")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class EquipCard : Card ---@class EquipCard : Card
---@field public equip_skill Skill ---@field public equip_skill Skill
local EquipCard = Card:subclass("EquipCard") local EquipCard = Card:subclass("EquipCard")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class TrickCard : Card ---@class TrickCard : Card
local TrickCard = Card:subclass("TrickCard") local TrickCard = Card:subclass("TrickCard")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@diagnostic disable: lowercase-global ---@diagnostic disable: lowercase-global
inspect = require "inspect" inspect = require "inspect"

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
--- Engine是整个FreeKill赖以运行的核心。 --- Engine是整个FreeKill赖以运行的核心。
--- ---
--- 它包含了FreeKill涉及的所有武将、卡牌、游戏模式等等 --- 它包含了FreeKill涉及的所有武将、卡牌、游戏模式等等

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
--[[ --[[
Exppattern is a string that describes cards of a same 'type', e.g. name, Exppattern is a string that describes cards of a same 'type', e.g. name,

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class GameMode: Object ---@class GameMode: Object
---@field public name string ---@field public name string
---@field public minPlayer integer ---@field public minPlayer integer

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class General : Object ---@class General : Object
---@field public package Package ---@field public package Package
---@field public name string ---@field public name string

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
--- Package用来描述一个FreeKill拓展包。 --- Package用来描述一个FreeKill拓展包。
--- ---
--- 所谓拓展包,就是武将/卡牌/游戏模式的一个集合而已。 --- 所谓拓展包,就是武将/卡牌/游戏模式的一个集合而已。

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
--- 玩家分为客户端要处理的玩家,以及服务端处理的玩家两种。 --- 玩家分为客户端要处理的玩家,以及服务端处理的玩家两种。
--- ---
--- 客户端能知道的玩家的信息十分有限,而服务端知道一名玩家的所有细节。 --- 客户端能知道的玩家的信息十分有限,而服务端知道一名玩家的所有细节。

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class Skill : Object ---@class Skill : Object
---@field public name string ---@field public name string
---@field public trueName string ---@field public trueName string

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class ActiveSkill : UsableSkill ---@class ActiveSkill : UsableSkill
---@field public min_target_num integer ---@field public min_target_num integer
---@field public max_target_num integer ---@field public max_target_num integer

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class AttackRangeSkill : StatusSkill ---@class AttackRangeSkill : StatusSkill
local AttackRangeSkill = StatusSkill:subclass("AttackRangeSkill") local AttackRangeSkill = StatusSkill:subclass("AttackRangeSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class DistanceSkill : StatusSkill ---@class DistanceSkill : StatusSkill
local DistanceSkill = StatusSkill:subclass("DistanceSkill") local DistanceSkill = StatusSkill:subclass("DistanceSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class FilterSkill: StatusSkill ---@class FilterSkill: StatusSkill
local FilterSkill = StatusSkill:subclass("FilterSkill") local FilterSkill = StatusSkill:subclass("FilterSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class InvaliditySkill : StatusSkill ---@class InvaliditySkill : StatusSkill
local InvaliditySkill = StatusSkill:subclass("InvaliditySkill") local InvaliditySkill = StatusSkill:subclass("InvaliditySkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class MaxCardsSkill : StatusSkill ---@class MaxCardsSkill : StatusSkill
local MaxCardsSkill = StatusSkill:subclass("MaxCardsSkill") local MaxCardsSkill = StatusSkill:subclass("MaxCardsSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class ProhibitSkill : StatusSkill ---@class ProhibitSkill : StatusSkill
local ProhibitSkill = StatusSkill:subclass("ProhibitSkill") local ProhibitSkill = StatusSkill:subclass("ProhibitSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class StatusSkill : Skill ---@class StatusSkill : Skill
---@field public global boolean ---@field public global boolean
local StatusSkill = Skill:subclass("StatusSkill") local StatusSkill = Skill:subclass("StatusSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class TargetModSkill : StatusSkill ---@class TargetModSkill : StatusSkill
local TargetModSkill = StatusSkill:subclass("TargetModSkill") local TargetModSkill = StatusSkill:subclass("TargetModSkill")

View File

@ -1,3 +1,5 @@
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class TriggerSkill : UsableSkill ---@class TriggerSkill : UsableSkill
---@field public global boolean ---@field public global boolean
---@field public events Event[] ---@field public events Event[]

Some files were not shown because too many files have changed in this diff Show More