黄豆 饮料 冰棍 实现
This commit is contained in:
1 parent
38f2ff2b33
commit
f89b95fb99
23 files changed
+1773
-88
No files matched your search
+7
-5
@@ -106,15 +106,17 @@ class FeatureDispatcher(BlueFoxServerSystem):
|
||||
def startTimerFor(cls, blockName, dim, pos, playerId=None):
|
||||
"""
|
||||
右键服务调用:把"计时源方块"的计时启动任务转发给对应的计时服务。
|
||||
- 例如:烧烤右键"烤鸡(生)"开始烤制;动物装满饲料盆后自动开始变空计时
|
||||
- 内部通过 timerOwner 路由表 O(1) 找到计时服务,调它的 startTimer
|
||||
返回 True=找到了计时服务并处理;False=该方块不属于任何计时服务
|
||||
- 例如:烧烤右键"烤鸡(生)"开始烤制;动物装满饲料盆后自动开始变空计时;
|
||||
饮料冰棍盒手持冰块右键未定型启动定型计时
|
||||
- 内部通过 timerOwner 路由表 O(1) 找到计时服务,调它的 startTimer,
|
||||
并返回计时服务的实际返回值:
|
||||
True = 本次真正启动了计时(如饮料冰棍盒据此消耗冰块)
|
||||
False = 没有计时服务 / 该方块已在计时中(不重复启动)
|
||||
"""
|
||||
service = cls.timerOwner.get(blockName)
|
||||
if not service:
|
||||
return False
|
||||
service.startTimer(dim, pos, blockName, playerId)
|
||||
return True
|
||||
return service.startTimer(dim, pos, blockName, playerId)
|
||||
|
||||
def __init__(self, namespace, systemName):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user