Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kebiao committed Oct 16, 2019
1 parent 670cf20 commit 8b2d200
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ typedef uint8 ENTITY_SUBSTATE;

typedef int32 ENTITY_FORBIDS;

class KBENGINEPLUGINS_API ENTITY_FORBID_COUNTER : public TArray<int8>
class ENTITY_FORBID_COUNTER : public TArray<int8>
{
public:

Expand All @@ -112,7 +112,12 @@ class KBENGINEPLUGINS_API ENTITY_FORBID_COUNTER : public TArray<int8>

};

class KBENGINEPLUGINS_API ENTITYID_LIST : public TArray<int32>
inline bool operator ==(const ENTITY_FORBID_COUNTER& a, const ENTITY_FORBID_COUNTER& b)
{
return a == b;
};

class ENTITYID_LIST : public TArray<int32>
{
public:

Expand All @@ -122,7 +127,12 @@ class KBENGINEPLUGINS_API ENTITYID_LIST : public TArray<int32>

};

class KBENGINEPLUGINS_API AVATAR_DATA
inline bool operator ==(const ENTITYID_LIST& a, const ENTITYID_LIST& b)
{
return a == b;
};

class AVATAR_DATA
{
public:
int8 param1;
Expand All @@ -136,7 +146,12 @@ class KBENGINEPLUGINS_API AVATAR_DATA

};

class KBENGINEPLUGINS_API AVATAR_INFOS
inline bool operator ==(const AVATAR_DATA& a, const AVATAR_DATA& b)
{
return a.param1 == b.param1 && a.param2 == b.param2;
};

class AVATAR_INFOS
{
public:
uint64 dbid;
Expand All @@ -156,7 +171,12 @@ class KBENGINEPLUGINS_API AVATAR_INFOS

};

class KBENGINEPLUGINS_API AVATAR_INFOS_LIST
inline bool operator ==(const AVATAR_INFOS& a, const AVATAR_INFOS& b)
{
return a.dbid == b.dbid && a.name == b.name && a.roleType == b.roleType && a.level == b.level && a.data == b.data;
};

class AVATAR_INFOS_LIST
{
public:
TArray<AVATAR_INFOS> values;
Expand All @@ -168,7 +188,12 @@ class KBENGINEPLUGINS_API AVATAR_INFOS_LIST

};

class KBENGINEPLUGINS_API BAG
inline bool operator ==(const AVATAR_INFOS_LIST& a, const AVATAR_INFOS_LIST& b)
{
return a.values == b.values;
};

class BAG
{
public:
TArray<TArray<int64>> values22;
Expand All @@ -180,7 +205,12 @@ class KBENGINEPLUGINS_API BAG

};

class KBENGINEPLUGINS_API EXAMPLES
inline bool operator ==(const BAG& a, const BAG& b)
{
return a.values22 == b.values22;
};

class EXAMPLES
{
public:
int64 k1;
Expand All @@ -194,5 +224,10 @@ class KBENGINEPLUGINS_API EXAMPLES

};

inline bool operator ==(const EXAMPLES& a, const EXAMPLES& b)
{
return a.k1 == b.k1 && a.k2 == b.k2;
};


}
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void KBEngineApp::reset()
serverdatas_.Empty();

serverVersion_ = TEXT("");
clientVersion_ = TEXT("2.5.4");
clientVersion_ = TEXT("2.5.8");
serverScriptVersion_ = TEXT("");
clientScriptVersion_ = TEXT("0.1.0");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,10 @@ class KBENGINEPLUGINS_API Messages
loginappMessages.Empty();
baseappMessages.Empty();
clientMessages.Empty();

for (auto item : messages)
delete item.Value;

messages.Empty();

initialize();
Expand Down

0 comments on commit 8b2d200

Please sign in to comment.