forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
class IIocpContext;
|
||||
|
||||
class cCommand
|
||||
{
|
||||
public:
|
||||
cCommand(void) {}
|
||||
~cCommand(void) {}
|
||||
|
||||
public:
|
||||
BOOL Run(IIocpContext* context, const uint8* buffer, const uint32 payload);
|
||||
BOOL Run(const uint32 serverId, const uint8* buffer, const uint32 payload);
|
||||
|
||||
protected:
|
||||
virtual BOOL Verify(IIocpContext* pContext, uint8* buffer, const uint32 length) { return TRUE; }
|
||||
virtual BOOL Verify(uint8* buffer, const uint32 length) { return TRUE; }
|
||||
|
||||
virtual void Self() {}
|
||||
virtual void Run(IIocpContext* context) {}
|
||||
virtual void Run(const uint32 serverId) {}
|
||||
};
|
||||
Reference in new issue
Block a user