FreeKill/docs/dev/scenario.rst

31 lines
668 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. SPDX-License-Identifier: GFDL-1.3-or-later
关于扩展FreeKill玩法的思考
==========================
要扩展玩法,大概就这些:
1. 扩展新规则,覆盖本来的身份版规则
2. 直接大改gamelogic把流程都改了
要将扩展的玩法放进游戏:
1. 首先创房间的时候有下拉菜单给人选模式
2. Room正式开始之后根据模式加载相应的Logic
3. 加载GameRule后根据模式加载特殊规则
4. 开始玩
--------------
拓展新规
--------
首先就是如何覆盖老规则这个可以通过设置一个特殊tag
--------------
拓展logic
---------
从GameLogic继承然后重写有关函数就行