Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kebiao committed Dec 19, 2018
1 parent bce5ac1 commit 3c6a24f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public virtual void onDetached(Entity ownerEntity)

}

public virtual ScriptModule getScriptModule()
{
// 动态生成
return null;
}

public virtual void onRemoteMethodCall(UInt16 methodUtype, MemoryStream stream)
{
// 动态生成
Expand Down
6 changes: 3 additions & 3 deletions Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public enum NETWORK_ENCRYPT_TYPE

// 服务端与客户端的版本号以及协议MD5
public string serverVersion = "";
public string clientVersion = "2.3.3";
public string clientVersion = "2.3.4";
public string serverScriptVersion = "";
public string clientScriptVersion = "0.1.0";
public string serverProtocolMD5 = "193D9F820FE858940A7875F64FD9E051";
public string serverEntitydefMD5 = "B82E0C153A91A452DF234FE7CDD02C3F";
public string serverProtocolMD5 = "15BB33A3346B4DBF182B132C85E37536";
public string serverEntitydefMD5 = "90AA620FCF194B85FBE7A8E4F4F8F938";

// 当前玩家的实体id与实体类别
public UInt64 entity_uuid = 0;
Expand Down
5 changes: 5 additions & 0 deletions Assets/Plugins/kbengine/kbengine_unity3d_plugins/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public override void createFromStream(MemoryStream stream)
cellEntityCall = new EntityCellEntityCall_TestBase(entityComponentPropertyID, ownerID);
}

public override ScriptModule getScriptModule()
{
return EntityDef.moduledefs["Test"];
}

public override void onRemoteMethodCall(UInt16 methodUtype, MemoryStream stream)
{
ScriptModule sm = EntityDef.moduledefs["Test"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public override void createFromStream(MemoryStream stream)
cellEntityCall = new EntityCellEntityCall_TestNoBaseBase(entityComponentPropertyID, ownerID);
}

public override ScriptModule getScriptModule()
{
return EntityDef.moduledefs["TestNoBase"];
}

public override void onRemoteMethodCall(UInt16 methodUtype, MemoryStream stream)
{
ScriptModule sm = EntityDef.moduledefs["TestNoBase"];
Expand Down

0 comments on commit 3c6a24f

Please sign in to comment.