同步官网文档8m_25d
This commit is contained in:
@@ -161,10 +161,10 @@ class CoroutineMgr(object):
|
||||
然后修改ChatPart.py的代码如下:
|
||||
|
||||
```python
|
||||
from coroutineMgrGas import CoroutineMgr
|
||||
|
||||
from coroutineMgrGas import CoroutineMgr
|
||||
|
||||
……
|
||||
|
||||
|
||||
def TickServer(self):
|
||||
CoroutineMgr.Tick()
|
||||
|
||||
@@ -200,7 +200,7 @@ from coroutineMgrGas import CoroutineMgr
|
||||
super(ChatPart, self).__init__()
|
||||
self.name = "Chat"
|
||||
self.message = "摧毁"
|
||||
|
||||
|
||||
def OnServerChat(self, args):
|
||||
if args["message"] == self.message:
|
||||
......
|
||||
|
||||
Reference in New Issue
Block a user