You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,62 @@ http://www.kbengine.org
98
98
https://github.com/kbengine/unity3d_nav_critterai
99
99
100
100
101
+
##Structure and interpretation:
102
+
103
+
The relationship between plug-ins(KBE) and U3D and servers:
104
+
Plug-in and servers: Responsible for processing and server network packet. account login/logout process.
105
+
By server notification logic entities are created and destroyed. Processing synchronous logical entity attribute data. etc.
106
+
Plug-in and U3D: The plug-in will trigger some events to the U3D graphics layer, the graphics layer determines whether to capture some events,
107
+
get data to render performance (for example: create a monster, a NPC move-speed increase, HP changes).
108
+
U3D graphics layer will input the event trigger to the plug-in layer (for example: the player moved, hit the relive button UI),
109
+
the plug-in logic script layer determines whether the need to transfer to the server. etc.
110
+
111
+
112
+
Plugins\kbengine\kbengine_unity3d_plugins:
113
+
Client plug-in core codes.
114
+
115
+
Scripts\kbe_scripts:
116
+
KBE client logic scripts(in this implementation of the server side of the entity script, the entity's bag data structure, skills in client condition checks, etc.).
117
+
118
+
Scripts\kbe_scripts\Account.cs:
119
+
Corresponds to the client side of the KBE server account entity.
120
+
121
+
Scripts\kbe_scripts\Avatar.cs:
122
+
Corresponds to the client side of the KBE server avatar entity.
123
+
124
+
Scripts\kbe_scripts\Monster.cs:
125
+
Corresponds to the client side of the KBE server monster entity.
126
+
127
+
Scripts\kbe_scripts\clientapp.cs:
128
+
In the system of KBE abstraction of a client APP, which contains the KBE client plug-in initialization and destruction, etc.
129
+
130
+
Scripts\kbe_scripts\interfaces:
131
+
Corresponding to the module defined in KBE(entity_defs\interfaces).
132
+
133
+
Scripts\u3d_scripts:
134
+
Unity graphics layer (including scene rendering, UI, object, character model, monster model).
135
+
136
+
Scripts\u3d_scripts\GameEntity.cs:
137
+
Monster/NPC or player script (management model and animation, etc.).
138
+
139
+
Scripts\u3d_scripts\World.cs:
140
+
Manage a map of the game script, for example: to create a specific 3D monster into the scene.
0 commit comments