game_machine 0.0.11 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (274) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +12 -1
  3. data/Gemfile.lock +32 -47
  4. data/Rakefile +0 -27
  5. data/bin/bundle_run.sh +1 -0
  6. data/bin/game_machine +29 -27
  7. data/config/cluster.conf +6 -5
  8. data/config/default.conf +164 -0
  9. data/config/game_machine.sql +33 -0
  10. data/config/game_messages.proto +87 -25
  11. data/config/gamecloud.conf +140 -0
  12. data/config/messages.proto +46 -53
  13. data/config/test.conf +149 -0
  14. data/game_machine.gemspec +10 -5
  15. data/games/boot.rb +3 -0
  16. data/games/example/data/game_data.yml +4 -4
  17. data/games/example/lib/aggressive_npc.rb +1 -1
  18. data/games/example/lib/game.rb +1 -2
  19. data/games/example/lib/player_register.rb +1 -1
  20. data/games/routes.rb +9 -0
  21. data/games/tutorial/boot.rb +12 -0
  22. data/games/tutorial/item_manager.rb +256 -0
  23. data/games/tutorial/object_store.rb +55 -0
  24. data/games/tutorial/seed.rb +52 -0
  25. data/games/tutorial/sql_store.rb +30 -0
  26. data/java/project/build.gradle +134 -0
  27. data/java/project/component.erb +719 -0
  28. data/java/{gradle.properties → project/gradle.properties} +1 -1
  29. data/java/project/gradle/wrapper/gradle-wrapper.jar +0 -0
  30. data/java/{gradle → project/gradle}/wrapper/gradle-wrapper.properties +2 -2
  31. data/java/{gradlew → project/gradlew} +0 -0
  32. data/java/{gradlew.bat → project/gradlew.bat} +0 -0
  33. data/java/project/local_lib/AdminUi.jar +0 -0
  34. data/java/{local_lib/protostuff-compiler-1.0.7-jarjar.jar → project/local_lib/protostuff-compiler-1.0.8-jarjar.jar} +0 -0
  35. data/java/project/local_lib/sigar/libsigar-amd64-freebsd-6.so +0 -0
  36. data/java/project/local_lib/sigar/libsigar-amd64-linux.so +0 -0
  37. data/java/project/local_lib/sigar/libsigar-amd64-solaris.so +0 -0
  38. data/java/project/local_lib/sigar/libsigar-ia64-hpux-11.sl +0 -0
  39. data/java/project/local_lib/sigar/libsigar-ia64-linux.so +0 -0
  40. data/java/project/local_lib/sigar/libsigar-pa-hpux-11.sl +0 -0
  41. data/java/project/local_lib/sigar/libsigar-ppc-aix-5.so +0 -0
  42. data/java/project/local_lib/sigar/libsigar-ppc-linux.so +0 -0
  43. data/java/project/local_lib/sigar/libsigar-ppc64-aix-5.so +0 -0
  44. data/java/project/local_lib/sigar/libsigar-ppc64-linux.so +0 -0
  45. data/java/project/local_lib/sigar/libsigar-s390x-linux.so +0 -0
  46. data/java/project/local_lib/sigar/libsigar-sparc-solaris.so +0 -0
  47. data/java/project/local_lib/sigar/libsigar-sparc64-solaris.so +0 -0
  48. data/java/project/local_lib/sigar/libsigar-universal-macosx.dylib +0 -0
  49. data/java/project/local_lib/sigar/libsigar-universal64-macosx.dylib +0 -0
  50. data/java/project/local_lib/sigar/libsigar-x86-freebsd-5.so +0 -0
  51. data/java/project/local_lib/sigar/libsigar-x86-freebsd-6.so +0 -0
  52. data/java/project/local_lib/sigar/libsigar-x86-linux.so +0 -0
  53. data/java/project/local_lib/sigar/libsigar-x86-solaris.so +0 -0
  54. data/java/project/local_lib/sigar/sigar-amd64-winnt.dll +0 -0
  55. data/java/project/local_lib/sigar/sigar-x86-winnt.dll +0 -0
  56. data/java/project/local_lib/sigar/sigar-x86-winnt.lib +0 -0
  57. data/java/project/model.erb +99 -0
  58. data/java/{settings.gradle → project/settings.gradle} +0 -0
  59. data/java/project/src/main/java/com/game_machine/authentication/DefaultAuthenticator.java +28 -0
  60. data/java/project/src/main/java/com/game_machine/authentication/PlayerAuthenticator.java +6 -0
  61. data/java/project/src/main/java/com/game_machine/authentication/PublicAuthenticator.java +20 -0
  62. data/java/{src → project/src}/main/java/com/game_machine/core/ActorFactory.java +0 -0
  63. data/java/{src → project/src}/main/java/com/game_machine/core/ActorUtil.java +13 -0
  64. data/java/project/src/main/java/com/game_machine/core/AuthorizedPlayers.java +23 -0
  65. data/java/project/src/main/java/com/game_machine/core/ClientMessageDecoder.java +36 -0
  66. data/java/project/src/main/java/com/game_machine/core/ClientMessageEncoder.java +19 -0
  67. data/java/project/src/main/java/com/game_machine/core/CloudClient.java +298 -0
  68. data/java/{src → project/src}/main/java/com/game_machine/core/CommandProxy.java +0 -0
  69. data/java/project/src/main/java/com/game_machine/core/Commands.java +20 -0
  70. data/java/project/src/main/java/com/game_machine/core/DatastoreCommands.java +43 -0
  71. data/java/project/src/main/java/com/game_machine/core/DbConnectionPool.java +72 -0
  72. data/java/project/src/main/java/com/game_machine/core/DefaultMovementVerifier.java +56 -0
  73. data/java/{src → project/src}/main/java/com/game_machine/core/EntitySerializer.java +0 -0
  74. data/java/project/src/main/java/com/game_machine/core/EntityTracking.java +119 -0
  75. data/java/{src → project/src}/main/java/com/game_machine/core/EventStreamHandler.java +1 -1
  76. data/java/project/src/main/java/com/game_machine/core/GameActor.java +73 -0
  77. data/java/project/src/main/java/com/game_machine/core/GameMachineLoader.java +43 -0
  78. data/java/project/src/main/java/com/game_machine/core/GameMessageActor.java +44 -0
  79. data/java/project/src/main/java/com/game_machine/core/Grid.java +255 -0
  80. data/java/{src → project/src}/main/java/com/game_machine/core/GridValue.java +0 -0
  81. data/java/project/src/main/java/com/game_machine/core/Hashring.java +66 -0
  82. data/java/{src → project/src}/main/java/com/game_machine/core/IActorFactory.java +0 -0
  83. data/java/project/src/main/java/com/game_machine/core/LocalLinkedBuffer.java +20 -0
  84. data/java/project/src/main/java/com/game_machine/core/MessageGateway.java +120 -0
  85. data/java/project/src/main/java/com/game_machine/core/MessagePersister.java +26 -0
  86. data/java/project/src/main/java/com/game_machine/core/MonoProxy.java +39 -0
  87. data/java/project/src/main/java/com/game_machine/core/MovementVerifier.java +7 -0
  88. data/java/{src → project/src}/main/java/com/game_machine/core/NetMessage.java +10 -6
  89. data/java/project/src/main/java/com/game_machine/core/PersistentMessage.java +9 -0
  90. data/java/project/src/main/java/com/game_machine/core/PlayerCommands.java +31 -0
  91. data/java/project/src/main/java/com/game_machine/core/TcpServer.java +100 -0
  92. data/java/project/src/main/java/com/game_machine/core/TcpServerHandler.java +54 -0
  93. data/java/project/src/main/java/com/game_machine/core/TcpServerInitializer.java +32 -0
  94. data/java/project/src/main/java/com/game_machine/core/UdpClient.java +86 -0
  95. data/java/{src → project/src}/main/java/com/game_machine/core/UdpServer.java +18 -27
  96. data/java/{src → project/src}/main/java/com/game_machine/core/UdpServerHandler.java +23 -26
  97. data/java/project/src/main/java/com/game_machine/core/Vector3.java +159 -0
  98. data/java/project/src/main/java/com/game_machine/orm/models/PlayerItem.java +118 -0
  99. data/java/project/src/main/java/com/game_machine/orm/models/TestObject.java +110 -0
  100. data/java/project/src/main/java/com/game_machine/tutorial/LootGenerator.java +26 -0
  101. data/java/{src → project/src}/main/resources/game_machine.java.stg +3 -1
  102. data/java/project/src/main/resources/logback.properties +13 -0
  103. data/java/project/src/main/resources/logback.xml +76 -0
  104. data/java/{src → project/src}/main/resources/protostuff.properties +0 -0
  105. data/java/src/main/java/game/MyGameActor.java +26 -0
  106. data/lib/game_machine.rb +17 -16
  107. data/lib/game_machine/actor.rb +1 -1
  108. data/lib/game_machine/actor/base.rb +8 -31
  109. data/lib/game_machine/actor/builder.rb +5 -6
  110. data/lib/game_machine/actor/game_actor.rb +55 -0
  111. data/lib/game_machine/actor/reloadable.rb +6 -1
  112. data/lib/game_machine/akka.rb +26 -32
  113. data/lib/game_machine/app_config.rb +39 -26
  114. data/lib/game_machine/application.rb +56 -62
  115. data/lib/game_machine/client_manager.rb +14 -8
  116. data/lib/game_machine/cloud_updater.rb +51 -0
  117. data/lib/game_machine/cluster_monitor.rb +3 -3
  118. data/lib/game_machine/commands.rb +1 -1
  119. data/lib/game_machine/commands/misc_commands.rb +4 -8
  120. data/lib/game_machine/commands/player_commands.rb +8 -0
  121. data/lib/game_machine/console.rb +1 -0
  122. data/lib/game_machine/console/build.rb +57 -24
  123. data/lib/game_machine/console/bundle.rb +95 -0
  124. data/lib/game_machine/console/deploy.rb +30 -0
  125. data/lib/game_machine/console/install.rb +70 -36
  126. data/lib/game_machine/console/server.rb +2 -69
  127. data/lib/game_machine/data_store.rb +111 -15
  128. data/lib/game_machine/data_stores/couchbase.rb +8 -3
  129. data/lib/game_machine/data_stores/gamecloud.rb +93 -0
  130. data/lib/game_machine/data_stores/jdbc.rb +98 -0
  131. data/lib/game_machine/default_handlers.rb +2 -0
  132. data/lib/game_machine/default_handlers/team_handler.rb +51 -0
  133. data/lib/game_machine/default_handlers/zone_manager.rb +30 -0
  134. data/lib/game_machine/endpoints.rb +0 -4
  135. data/lib/game_machine/endpoints/udp_incoming.rb +13 -5
  136. data/lib/game_machine/endpoints/udp_outgoing.rb +15 -9
  137. data/lib/game_machine/game_systems.rb +0 -2
  138. data/lib/game_machine/game_systems/agents/controller.rb +2 -2
  139. data/lib/game_machine/game_systems/entity_tracking.rb +0 -3
  140. data/lib/game_machine/game_systems/region_manager.rb +3 -2
  141. data/lib/game_machine/game_systems/region_service.rb +2 -2
  142. data/lib/game_machine/game_systems/remote_echo.rb +10 -0
  143. data/lib/game_machine/game_systems/team_manager.rb +2 -11
  144. data/lib/game_machine/grid.rb +5 -18
  145. data/lib/game_machine/handlers/authentication.rb +1 -9
  146. data/lib/game_machine/handlers/game.rb +27 -2
  147. data/lib/game_machine/handlers/player_authentication.rb +87 -0
  148. data/lib/game_machine/handlers/request.rb +9 -11
  149. data/lib/game_machine/hocon_config.rb +81 -0
  150. data/lib/game_machine/java_lib.rb +14 -1
  151. data/lib/game_machine/logger.rb +10 -23
  152. data/lib/game_machine/models.rb +1 -0
  153. data/lib/game_machine/mono_server.rb +6 -1
  154. data/lib/game_machine/object_db.rb +12 -6
  155. data/lib/game_machine/protobuf.rb +1 -1
  156. data/lib/game_machine/protobuf/game_messages.rb +13 -3
  157. data/lib/game_machine/protobuf/generate.rb +107 -5
  158. data/lib/game_machine/restart_watcher.rb +1 -1
  159. data/lib/game_machine/routes.rb +23 -0
  160. data/lib/game_machine/scheduler.rb +1 -1
  161. data/lib/game_machine/securerandom.rb +2 -0
  162. data/lib/game_machine/system_stats.rb +28 -7
  163. data/lib/game_machine/version.rb +1 -1
  164. data/lib/game_machine/wavefront_ext.rb +47 -0
  165. data/lib/game_machine/write_behind_cache.rb +24 -9
  166. data/mono/server/Makefile +1 -1
  167. data/mono/server/Newtonsoft.Json.dll +0 -0
  168. data/mono/server/build.bat +1 -1
  169. data/mono/server/callable.cs +9 -0
  170. data/mono/server/echo.cs +17 -0
  171. data/mono/server/message_router.cs +16 -23
  172. data/mono/server/messages.cs +1792 -417
  173. data/mono/server/protobuf-net.dll +0 -0
  174. data/mono/server/server.cs +120 -0
  175. data/mono/server/server.exe +0 -0
  176. data/pathfinding/astar.cpp +149 -0
  177. data/pathfinding/build.sh +6 -0
  178. data/pathfinding/build.txt +16 -0
  179. data/pathfinding/crowd.cpp +194 -0
  180. data/pathfinding/include/astar.h +49 -0
  181. data/pathfinding/include/common.h +5 -0
  182. data/pathfinding/include/crowd.h +43 -0
  183. data/pathfinding/include/micropather.h +511 -0
  184. data/pathfinding/include/navmesh.h +114 -0
  185. data/pathfinding/include/pathfinder.h +24 -0
  186. data/pathfinding/main.cpp +108 -17
  187. data/pathfinding/micropather.cpp +1062 -0
  188. data/pathfinding/navmesh.cpp +408 -0
  189. data/pathfinding/overrides/DetourCrowd.cpp +1446 -0
  190. data/pathfinding/overrides/DetourNavMeshQuery.cpp +3551 -0
  191. data/pathfinding/overrides/DetourNavMeshQuery.h +538 -0
  192. data/pathfinding/pathfinder.cpp +117 -0
  193. data/pathfinding/{bin → premake}/premake4 +0 -0
  194. data/pathfinding/premake/premake4.exe +0 -0
  195. data/pathfinding/premake4.lua +12 -3
  196. data/spec/actor/actor_spec.rb +0 -7
  197. data/spec/client_manager_spec.rb +1 -1
  198. data/spec/couchproxy_spec.rb +38 -0
  199. data/spec/entity_persistence_spec.rb +129 -0
  200. data/spec/game_systems/team_manager_spec.rb +2 -2
  201. data/spec/hashring_spec.rb +17 -39
  202. data/spec/java_grid_spec.rb +0 -2
  203. data/spec/misc_spec.rb +111 -0
  204. data/spec/mono_spec.rb +50 -3
  205. data/spec/reliable_message_spec.rb +38 -0
  206. data/spec/spec_helper.rb +4 -4
  207. data/spec/spec_helper_minimal.rb +10 -0
  208. data/web/app.rb +108 -86
  209. data/web/config/trinidad.yml +1 -0
  210. data/web/views/add_player.erb +25 -0
  211. data/web/views/index.erb +0 -0
  212. data/web/views/layout.erb +48 -0
  213. data/web/views/login.erb +25 -0
  214. data/web/views/players.erb +24 -0
  215. metadata +209 -94
  216. data/config/config.example.yml +0 -100
  217. data/config/regions.example.yml +0 -9
  218. data/games/example/lib/authentication_handler.rb +0 -69
  219. data/games/models.rb +0 -3
  220. data/games/models/clan_member.rb +0 -8
  221. data/games/models/clan_profile.rb +0 -9
  222. data/games/models/player.rb +0 -7
  223. data/games/plugins.rb +0 -1
  224. data/games/plugins/team_handler.rb +0 -49
  225. data/games/preload.rb +0 -13
  226. data/java/.gitignore +0 -1
  227. data/java/build.gradle +0 -95
  228. data/java/component.erb +0 -396
  229. data/java/gradle/wrapper/gradle-wrapper.jar +0 -0
  230. data/java/src/main/java/com/game_machine/core/GameMachineLoader.java +0 -25
  231. data/java/src/main/java/com/game_machine/core/Grid.java +0 -195
  232. data/java/src/main/resources/logback.xml +0 -14
  233. data/java/src/main/resources/logging.properties +0 -3
  234. data/lib/game_machine/actor/mono_actor.rb +0 -89
  235. data/lib/game_machine/auth_handlers/base.rb +0 -21
  236. data/lib/game_machine/auth_handlers/public.rb +0 -34
  237. data/lib/game_machine/endpoints/mono_gateway.rb +0 -87
  238. data/lib/game_machine/endpoints/tcp.rb +0 -51
  239. data/lib/game_machine/endpoints/tcp_handler.rb +0 -75
  240. data/lib/game_machine/endpoints/udp.rb +0 -88
  241. data/lib/game_machine/game_loader.rb +0 -46
  242. data/lib/game_machine/game_systems/region_settings.rb +0 -13
  243. data/lib/game_machine/hashring.rb +0 -48
  244. data/lib/game_machine/settings.rb +0 -11
  245. data/mono/server/actor.cs +0 -37
  246. data/mono/server/iactor.cs +0 -11
  247. data/mono/server/message_util.cs +0 -29
  248. data/mono/server/proxy_client.cs +0 -73
  249. data/mono/server/proxy_server.cs +0 -30
  250. data/mono/server/test_actor.cs +0 -33
  251. data/pathfinding/include/pathfind.h +0 -167
  252. data/pathfinding/pathfind.cpp +0 -174
  253. data/pathfinding/pathfinder.cs +0 -66
  254. data/script/server.sh +0 -109
  255. data/script/watch.sh +0 -11
  256. data/spec/commands/navigation_commands_spec.rb +0 -51
  257. data/spec/game_systems/entity_tracking_spec.rb +0 -64
  258. data/spec/navigation/detour_navmesh_spec.rb +0 -34
  259. data/spec/navigation/detour_path_spec.rb +0 -25
  260. data/spec/udp_server_spec.rb +0 -10
  261. data/web/controllers/auth_controller.rb +0 -19
  262. data/web/controllers/base_controller.rb +0 -16
  263. data/web/controllers/index_controller.rb +0 -7
  264. data/web/controllers/log_controller.rb +0 -47
  265. data/web/controllers/messages_controller.rb +0 -59
  266. data/web/controllers/player_register_controller.rb +0 -15
  267. data/web/views/game_messages.haml +0 -45
  268. data/web/views/index.haml +0 -6
  269. data/web/views/layout.haml +0 -41
  270. data/web/views/logs.haml +0 -32
  271. data/web/views/player_register.haml +0 -22
  272. data/web/views/player_registered.haml +0 -2
  273. data/web/views/register_layout.haml +0 -22
  274. data/web/views/restart.haml +0 -35
@@ -2,7 +2,7 @@ module GameMachine
2
2
  class RestartWatcher < Actor::Base
3
3
 
4
4
  def post_init(*args)
5
- schedule_message('check_restart',1000)
5
+ schedule_message('check_restart',2000)
6
6
  end
7
7
 
8
8
  def on_receive(message)
@@ -0,0 +1,23 @@
1
+ module GameMachine
2
+ class Routes
3
+ include Singleton
4
+ attr_reader :game_message_routes, :entity_routes
5
+
6
+
7
+ def self.game_messages(&block)
8
+ instance.instance_eval(&block)
9
+ end
10
+
11
+ def initialize
12
+ @game_message_routes = {}
13
+ @entity_routes = {}
14
+ end
15
+
16
+ def route(id, params)
17
+ game_message_routes[id] = params
18
+ if params[:name]
19
+ game_message_routes[params[:name]] = params
20
+ end
21
+ end
22
+ end
23
+ end
@@ -15,7 +15,7 @@ module GameMachine
15
15
  def on_receive(message)
16
16
  if message == 'every_10_seconds'
17
17
  #GameMachine.logger.debug "Cluster members #{ClusterMonitor.cluster_members.keys.to_a.inspect}"
18
- #GameMachine.logger.debug "Hashrings #{Akka.instance.hashring.buckets.inspect}"
18
+ #GameMachine.logger.debug "Hashrings #{Akka.instance.hashring.nodes.inspect}"
19
19
  end
20
20
  end
21
21
  end
@@ -1,6 +1,8 @@
1
1
  require 'securerandom'
2
+ require 'digest/md5'
2
3
  module SecureRandom
3
4
  def self.hex(s)
5
+ return Digest::MD5.hexdigest('broken')
4
6
  raise NotImplementedError
5
7
  end
6
8
  end
@@ -2,20 +2,41 @@ module GameMachine
2
2
  class SystemStats < Actor::Base
3
3
 
4
4
  def post_init(*args)
5
+ @last_count = 0
6
+ @last_in_count = 0
7
+ @last_out_count = 0
5
8
  if getContext.system.name == 'cluster'
6
9
  @cluster = JavaLib::Cluster.get(getContext.system)
7
10
  end
8
- schedule_message('update',60,:seconds)
11
+ #schedule_message('message_count',1,:seconds)
12
+ #schedule_message('update',60,:seconds)
9
13
  end
10
14
 
11
15
  def on_receive(message)
12
- if message.is_a?(String) and message == 'update'
16
+ if message.is_a?(String)
17
+ if message == 'message_count'
18
+ current_count = JavaLib::MessageGateway.messageCount.incrementAndGet
19
+ diff = current_count - @last_count
20
+ GameMachine.logger.info "GatewayMessagesPerSecond: #{diff}"
21
+ @last_count = current_count
13
22
 
14
- Grid.grids.each do |name,grid|
15
- object_index_size = grid.objectIndex.length
16
- cellscache_size = grid.cellsCache.length
17
- cells_size = grid.cells.length
18
- GameMachine.logger.info "Grid #{name} ondex_size: #{object_index_size} ccache_size: #{cellscache_size} csize: #{cells_size}"
23
+ current_count = JavaLib::UdpServerHandler.countIn.incrementAndGet
24
+ diff = current_count - @last_in_count
25
+ GameMachine.logger.info "MessagesInPerSecond: #{diff}"
26
+ @last_in_count = current_count
27
+
28
+ current_count = JavaLib::UdpServerHandler.countOut.incrementAndGet
29
+ diff = current_count - @last_out_count
30
+ GameMachine.logger.info "MessagesOutPerSecond: #{diff}"
31
+ @last_out_count = current_count
32
+
33
+ elsif message == 'update'
34
+ JavaLib::Grid.grids.each do |name,grid|
35
+ object_index_size = grid.objectIndex.length
36
+ cellscache_size = grid.cellsCache.length
37
+ cells_size = grid.cells.length
38
+ GameMachine.logger.info "Grid #{name} ondex_size: #{object_index_size} ccache_size: #{cellscache_size} csize: #{cells_size}"
39
+ end
19
40
  end
20
41
  end
21
42
 
@@ -1,3 +1,3 @@
1
1
  module GameMachine
2
- VERSION = '0.0.11'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -0,0 +1,47 @@
1
+ require 'wavefront'
2
+ module Wavefront
3
+ class Object
4
+ def triangle_from_face_components face_components
5
+ triangle_vertices = []
6
+ face_components.each do |vertex_str|
7
+ vertex_str_components = vertex_str.split('/').map { |index| index.size > 0 ? index.to_i : nil }
8
+ position_index = vertex_str_components[0]
9
+ tex_index = vertex_str_components[1]
10
+
11
+ normal_index = vertex_str_components[2]
12
+
13
+ position = vertices[position_index-1]
14
+ tex_coordinate = tex_index ? texture_coordinates[tex_index-1] : nil
15
+ normal = normal_index ? normals[normal_index-1] : nil
16
+
17
+ triangle_vertices << Wavefront::Vertex.new(position, tex_coordinate, normal, position_index, tex_index, normal_index)
18
+ end
19
+ Wavefront::Triangle.new triangle_vertices
20
+ end
21
+ end
22
+
23
+ class Serializer
24
+
25
+ def self.to_protobuf(wavefront_object)
26
+ proto_mesh = GameMachine::MessageLib::Mesh.new
27
+ wavefront_object.groups.each do |group|
28
+ group.triangles.each do |triangle|
29
+ proto_poly = GameMachine::MessageLib::Polygon.new
30
+ if triangle.vertices.size != 3
31
+ puts "Invalid vert count #{triangle.vertices.size}"
32
+ end
33
+ triangle.vertices.each do |vertice|
34
+ proto_vector3 = GameMachine::MessageLib::Vector3.new
35
+ proto_vector3.set_x(vertice.position.x)
36
+ proto_vector3.set_y(vertice.position.y)
37
+ proto_vector3.set_z(vertice.position.z)
38
+ proto_poly.add_vertex(proto_vector3)
39
+ end
40
+ proto_mesh.add_polygon(proto_poly)
41
+ end
42
+ end
43
+ proto_mesh
44
+ end
45
+
46
+ end
47
+ end
@@ -1,11 +1,13 @@
1
1
  module GameMachine
2
2
  class WriteBehindCache < Actor::Base
3
3
 
4
+ WRITE_COUNT = java.util.concurrent.atomic.AtomicInteger.new
5
+
4
6
  def self.max_writes_per_second
5
7
  if @max_writes_per_second
6
8
  @max_writes_per_second
7
9
  else
8
- @max_writes_per_second = Application.config.cache_writes_per_second
10
+ @max_writes_per_second = Application.config.datastore.cache_writes_per_second
9
11
  end
10
12
  end
11
13
 
@@ -13,7 +15,7 @@ module GameMachine
13
15
  if @write_interval
14
16
  @write_interval
15
17
  else
16
- @write_interval = Application.config.cache_write_interval
18
+ @write_interval = Application.config.datastore.cache_write_interval
17
19
  end
18
20
  end
19
21
 
@@ -64,7 +66,9 @@ module GameMachine
64
66
 
65
67
  def eligible_for_write?(message)
66
68
  return true if write_interval == -1
67
- (current_time - last_updated(message)) > write_interval
69
+ message_last_write = last_updated(message)
70
+ return true if message_last_write.nil?
71
+ (current_time - message_last_write) > write_interval
68
72
  end
69
73
 
70
74
  def min_time_between_writes
@@ -76,15 +80,22 @@ module GameMachine
76
80
  end
77
81
 
78
82
  def queue_stats
83
+ GameMachine.logger.debug "#{self.class.name} write count #{WRITE_COUNT.incrementAndGet}"
79
84
  if @queue.size > 10
80
- GameMachine.logger.warn "Queued messages size = #{@queue.size}"
85
+ GameMachine.logger.info "Queued messages size = #{@queue.size}"
81
86
  end
82
87
  end
83
88
 
84
89
  def check_queue
85
90
  return if @queue.empty?
86
- if message = get_message(dequeue)
87
- write(message)
91
+ @queue.size.times do
92
+ if message = get_message(dequeue)
93
+ if eligible_for_write?(message)
94
+ write(message)
95
+ else
96
+ enqueue(message)
97
+ end
98
+ end
88
99
  end
89
100
  end
90
101
 
@@ -137,9 +148,13 @@ module GameMachine
137
148
  enqueue(message.id)
138
149
  else
139
150
  message = swap_if_queued_exists(message)
140
- @store.set(message.id, message)
141
- @last_write = current_time
142
- set_updated_at(message)
151
+ WRITE_COUNT.incrementAndGet
152
+ if @store.set(message.id, message)
153
+ @last_write = current_time
154
+ set_updated_at(message)
155
+ else
156
+ enqueue(message.id)
157
+ end
143
158
  end
144
159
  end
145
160
 
@@ -1,5 +1,5 @@
1
1
  server:
2
- mcs -pkg:dotnet -r:NLog.dll -r:protobuf-net.dll -out:server.exe proxy_server.cs proxy_client.cs messages.cs message_util.cs message_router.cs actor.cs iactor.cs test_actor.cs
2
+ mcs -debug -pkg:dotnet -r:NLog.dll -r:protobuf-net.dll -r:Newtonsoft.Json.dll -out:server.exe *.cs
3
3
 
4
4
  clean:
5
5
  rm -f server.exe
@@ -1,3 +1,3 @@
1
1
  cls
2
2
  del server.exe
3
- mcs -pkg:dotnet -r:NLog.dll -r:protobuf-net.dll -out:server.exe proxy_server.cs proxy_client.cs messages.cs message_util.cs message_router.cs actor.cs iactor.cs test_actor.cs
3
+ mcs -pkg:dotnet -r:NLog.dll -r:protobuf-net.dll -out:server.exe *.cs
@@ -0,0 +1,9 @@
1
+ using GameMachine;
2
+ using Entity = GameMachine.Messages.Entity;
3
+ namespace GameMachine
4
+ {
5
+ public interface Callable
6
+ {
7
+ Entity call(Entity entity);
8
+ }
9
+ }
@@ -0,0 +1,17 @@
1
+ using System;
2
+ using System.Text;
3
+ using System.IO;
4
+ using System.Collections.Generic;
5
+ using Entity = GameMachine.Messages.Entity;
6
+ using GameMachine;
7
+
8
+ namespace MyGame
9
+ {
10
+ public class Echo : GameMachine.Callable
11
+ {
12
+ public Entity call(Entity entity)
13
+ {
14
+ return entity;
15
+ }
16
+ }
17
+ }
@@ -15,51 +15,44 @@ namespace GameMachine
15
15
  {
16
16
  public class MessageRouter
17
17
  {
18
- public static ConcurrentDictionary<string,IActor> actors = new ConcurrentDictionary<string,IActor>();
19
- public static Logger logger = LogManager.GetLogger("GameMachine");
18
+ public ConcurrentDictionary<string,Callable> callables = new ConcurrentDictionary<string,Callable>();
19
+ public static Logger logger = LogManager.GetLogger("GameMachine");
20
20
 
21
- public static void Route(byte[] bytes, ProxyClient proxyClient)
21
+ public Entity Route(string klass, Entity message)
22
22
  {
23
23
  try
24
24
  {
25
-
26
- IActor actor;
27
- Entity entity = MessageUtil.ByteArrayToEntity(bytes);
28
-
29
- if (entity.id == "ping")
30
- {
31
- return;
32
- }
33
-
34
- string typeName = entity.destination;
25
+ Callable callable;
26
+ string typeName = klass;
35
27
  string threadId = System.Threading.Thread.CurrentThread.ManagedThreadId.ToString();
36
28
  string id = typeName + threadId;
37
29
 
38
- if (MessageRouter.actors.TryGetValue(id, out actor))
30
+ if (callables.TryGetValue(id, out callable))
39
31
  {
40
- actor.PostInit(proxyClient);
41
- actor.OnReceive(entity);
32
+ return callable.call(message);
42
33
  } else
43
34
  {
44
35
  Type type = Type.GetType(typeName);
45
36
  if (type == null)
46
37
  {
47
38
  MessageRouter.logger.Info(typeName + " is null");
48
- return;
39
+ return null;
49
40
  }
50
- actor = Activator.CreateInstance(type) as IActor;
51
- if (MessageRouter.actors.TryAdd(id, actor))
41
+ callable = Activator.CreateInstance(type) as Callable;
42
+ MessageRouter.logger.Info("Callable created with id " + id);
43
+ if (callables.TryAdd(id, callable))
52
44
  {
53
- actor.PostInit(proxyClient);
54
- actor.OnReceive(entity);
45
+ return callable.call(message);
55
46
  } else
56
47
  {
57
- MessageRouter.logger.Info("Unable to add actor " + id);
48
+ MessageRouter.logger.Info("Unable to add callable " + id);
49
+ return null;
58
50
  }
59
51
  }
60
52
  } catch (Exception ex)
61
53
  {
62
- Console.WriteLine(ex);
54
+ MessageRouter.logger.Info(ex.Message);
55
+ return null;
63
56
  }
64
57
  }
65
58
 
@@ -7,9 +7,291 @@
7
7
  // </auto-generated>
8
8
  //------------------------------------------------------------------------------
9
9
 
10
- // Generated from: combined_messages.proto
10
+ // Option: missing-value detection (*Specified/ShouldSerialize*/Reset*) enabled
11
+
12
+ // Generated from: config/combined_messages.proto
11
13
  namespace GameMachine.Messages
12
14
  {
15
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"TrackData")]
16
+ public partial class TrackData : global::ProtoBuf.IExtensible
17
+ {
18
+ public TrackData() {}
19
+
20
+ private float? _speed;
21
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"speed", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
22
+ public float speed
23
+ {
24
+ get { return _speed?? default(float); }
25
+ set { _speed = value; }
26
+ }
27
+ [global::System.Xml.Serialization.XmlIgnore]
28
+ [global::System.ComponentModel.Browsable(false)]
29
+ public bool speedSpecified
30
+ {
31
+ get { return this._speed != null; }
32
+ set { if (value == (this._speed== null)) this._speed = value ? this.speed : (float?)null; }
33
+ }
34
+ private bool ShouldSerializespeed() { return speedSpecified; }
35
+ private void Resetspeed() { speedSpecified = false; }
36
+
37
+ private float? _velocity;
38
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"velocity", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
39
+ public float velocity
40
+ {
41
+ get { return _velocity?? default(float); }
42
+ set { _velocity = value; }
43
+ }
44
+ [global::System.Xml.Serialization.XmlIgnore]
45
+ [global::System.ComponentModel.Browsable(false)]
46
+ public bool velocitySpecified
47
+ {
48
+ get { return this._velocity != null; }
49
+ set { if (value == (this._velocity== null)) this._velocity = value ? this.velocity : (float?)null; }
50
+ }
51
+ private bool ShouldSerializevelocity() { return velocitySpecified; }
52
+ private void Resetvelocity() { velocitySpecified = false; }
53
+
54
+ private GameMachine.Messages.Vector3 _direction = null;
55
+ [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"direction", DataFormat = global::ProtoBuf.DataFormat.Default)]
56
+ [global::System.ComponentModel.DefaultValue(null)]
57
+ public GameMachine.Messages.Vector3 direction
58
+ {
59
+ get { return _direction; }
60
+ set { _direction = value; }
61
+ }
62
+ private string _json;
63
+ [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"json", DataFormat = global::ProtoBuf.DataFormat.Default)]
64
+ public string json
65
+ {
66
+ get { return _json?? ""; }
67
+ set { _json = value; }
68
+ }
69
+ [global::System.Xml.Serialization.XmlIgnore]
70
+ [global::System.ComponentModel.Browsable(false)]
71
+ public bool jsonSpecified
72
+ {
73
+ get { return this._json != null; }
74
+ set { if (value == (this._json== null)) this._json = value ? this.json : (string)null; }
75
+ }
76
+ private bool ShouldSerializejson() { return jsonSpecified; }
77
+ private void Resetjson() { jsonSpecified = false; }
78
+
79
+ private string _id;
80
+ [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
81
+ public string id
82
+ {
83
+ get { return _id?? ""; }
84
+ set { _id = value; }
85
+ }
86
+ [global::System.Xml.Serialization.XmlIgnore]
87
+ [global::System.ComponentModel.Browsable(false)]
88
+ public bool idSpecified
89
+ {
90
+ get { return this._id != null; }
91
+ set { if (value == (this._id== null)) this._id = value ? this.id : (string)null; }
92
+ }
93
+ private bool ShouldSerializeid() { return idSpecified; }
94
+ private void Resetid() { idSpecified = false; }
95
+
96
+ private float? _x;
97
+ [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
98
+ public float x
99
+ {
100
+ get { return _x?? default(float); }
101
+ set { _x = value; }
102
+ }
103
+ [global::System.Xml.Serialization.XmlIgnore]
104
+ [global::System.ComponentModel.Browsable(false)]
105
+ public bool xSpecified
106
+ {
107
+ get { return this._x != null; }
108
+ set { if (value == (this._x== null)) this._x = value ? this.x : (float?)null; }
109
+ }
110
+ private bool ShouldSerializex() { return xSpecified; }
111
+ private void Resetx() { xSpecified = false; }
112
+
113
+ private float? _y;
114
+ [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
115
+ public float y
116
+ {
117
+ get { return _y?? default(float); }
118
+ set { _y = value; }
119
+ }
120
+ [global::System.Xml.Serialization.XmlIgnore]
121
+ [global::System.ComponentModel.Browsable(false)]
122
+ public bool ySpecified
123
+ {
124
+ get { return this._y != null; }
125
+ set { if (value == (this._y== null)) this._y = value ? this.y : (float?)null; }
126
+ }
127
+ private bool ShouldSerializey() { return ySpecified; }
128
+ private void Resety() { ySpecified = false; }
129
+
130
+ private float? _z;
131
+ [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
132
+ public float z
133
+ {
134
+ get { return _z?? default(float); }
135
+ set { _z = value; }
136
+ }
137
+ [global::System.Xml.Serialization.XmlIgnore]
138
+ [global::System.ComponentModel.Browsable(false)]
139
+ public bool zSpecified
140
+ {
141
+ get { return this._z != null; }
142
+ set { if (value == (this._z== null)) this._z = value ? this.z : (float?)null; }
143
+ }
144
+ private bool ShouldSerializez() { return zSpecified; }
145
+ private void Resetz() { zSpecified = false; }
146
+
147
+ private string _entityType;
148
+ [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"entityType", DataFormat = global::ProtoBuf.DataFormat.Default)]
149
+ public string entityType
150
+ {
151
+ get { return _entityType?? ""; }
152
+ set { _entityType = value; }
153
+ }
154
+ [global::System.Xml.Serialization.XmlIgnore]
155
+ [global::System.ComponentModel.Browsable(false)]
156
+ public bool entityTypeSpecified
157
+ {
158
+ get { return this._entityType != null; }
159
+ set { if (value == (this._entityType== null)) this._entityType = value ? this.entityType : (string)null; }
160
+ }
161
+ private bool ShouldSerializeentityType() { return entityTypeSpecified; }
162
+ private void ResetentityType() { entityTypeSpecified = false; }
163
+
164
+ private GameMachine.Messages.UnityGameObjects _unityGameObjects = null;
165
+ [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"unityGameObjects", DataFormat = global::ProtoBuf.DataFormat.Default)]
166
+ [global::System.ComponentModel.DefaultValue(null)]
167
+ public GameMachine.Messages.UnityGameObjects unityGameObjects
168
+ {
169
+ get { return _unityGameObjects; }
170
+ set { _unityGameObjects = value; }
171
+ }
172
+ private string _neighborEntityType;
173
+ [global::ProtoBuf.ProtoMember(11, IsRequired = false, Name=@"neighborEntityType", DataFormat = global::ProtoBuf.DataFormat.Default)]
174
+ public string neighborEntityType
175
+ {
176
+ get { return _neighborEntityType?? ""; }
177
+ set { _neighborEntityType = value; }
178
+ }
179
+ [global::System.Xml.Serialization.XmlIgnore]
180
+ [global::System.ComponentModel.Browsable(false)]
181
+ public bool neighborEntityTypeSpecified
182
+ {
183
+ get { return this._neighborEntityType != null; }
184
+ set { if (value == (this._neighborEntityType== null)) this._neighborEntityType = value ? this.neighborEntityType : (string)null; }
185
+ }
186
+ private bool ShouldSerializeneighborEntityType() { return neighborEntityTypeSpecified; }
187
+ private void ResetneighborEntityType() { neighborEntityTypeSpecified = false; }
188
+
189
+ private int? _action;
190
+ [global::ProtoBuf.ProtoMember(12, IsRequired = false, Name=@"action", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
191
+ public int action
192
+ {
193
+ get { return _action?? default(int); }
194
+ set { _action = value; }
195
+ }
196
+ [global::System.Xml.Serialization.XmlIgnore]
197
+ [global::System.ComponentModel.Browsable(false)]
198
+ public bool actionSpecified
199
+ {
200
+ get { return this._action != null; }
201
+ set { if (value == (this._action== null)) this._action = value ? this.action : (int?)null; }
202
+ }
203
+ private bool ShouldSerializeaction() { return actionSpecified; }
204
+ private void Resetaction() { actionSpecified = false; }
205
+
206
+ private global::ProtoBuf.IExtension extensionObject;
207
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
208
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
209
+ }
210
+
211
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GameMessage")]
212
+ public partial class GameMessage : global::ProtoBuf.IExtensible
213
+ {
214
+ public GameMessage() {}
215
+
216
+ private GameMachine.Messages.Attack _attack = null;
217
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"attack", DataFormat = global::ProtoBuf.DataFormat.Default)]
218
+ [global::System.ComponentModel.DefaultValue(null)]
219
+ public GameMachine.Messages.Attack attack
220
+ {
221
+ get { return _attack; }
222
+ set { _attack = value; }
223
+ }
224
+ private GameMachine.Messages.Health _health = null;
225
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"health", DataFormat = global::ProtoBuf.DataFormat.Default)]
226
+ [global::System.ComponentModel.DefaultValue(null)]
227
+ public GameMachine.Messages.Health health
228
+ {
229
+ get { return _health; }
230
+ set { _health = value; }
231
+ }
232
+ private global::ProtoBuf.IExtension extensionObject;
233
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
234
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
235
+ }
236
+
237
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GameMessages")]
238
+ public partial class GameMessages : global::ProtoBuf.IExtensible
239
+ {
240
+ public GameMessages() {}
241
+
242
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.GameMessage> _gameMessage = new global::System.Collections.Generic.List<GameMachine.Messages.GameMessage>();
243
+ [global::ProtoBuf.ProtoMember(1, Name=@"gameMessage", DataFormat = global::ProtoBuf.DataFormat.Default)]
244
+ public global::System.Collections.Generic.List<GameMachine.Messages.GameMessage> gameMessage
245
+ {
246
+ get { return _gameMessage; }
247
+ }
248
+
249
+ private global::ProtoBuf.IExtension extensionObject;
250
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
251
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
252
+ }
253
+
254
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnityGameObject")]
255
+ public partial class UnityGameObject : global::ProtoBuf.IExtensible
256
+ {
257
+ public UnityGameObject() {}
258
+
259
+ private int _entityType;
260
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"entityType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
261
+ public int entityType
262
+ {
263
+ get { return _entityType; }
264
+ set { _entityType = value; }
265
+ }
266
+ private readonly global::System.Collections.Generic.List<byte[]> _byteArray = new global::System.Collections.Generic.List<byte[]>();
267
+ [global::ProtoBuf.ProtoMember(2, Name=@"byteArray", DataFormat = global::ProtoBuf.DataFormat.Default)]
268
+ public global::System.Collections.Generic.List<byte[]> byteArray
269
+ {
270
+ get { return _byteArray; }
271
+ }
272
+
273
+ private global::ProtoBuf.IExtension extensionObject;
274
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
275
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
276
+ }
277
+
278
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"UnityGameObjects")]
279
+ public partial class UnityGameObjects : global::ProtoBuf.IExtensible
280
+ {
281
+ public UnityGameObjects() {}
282
+
283
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.UnityGameObject> _unityGameObject = new global::System.Collections.Generic.List<GameMachine.Messages.UnityGameObject>();
284
+ [global::ProtoBuf.ProtoMember(1, Name=@"unityGameObject", DataFormat = global::ProtoBuf.DataFormat.Default)]
285
+ public global::System.Collections.Generic.List<GameMachine.Messages.UnityGameObject> unityGameObject
286
+ {
287
+ get { return _unityGameObject; }
288
+ }
289
+
290
+ private global::ProtoBuf.IExtension extensionObject;
291
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
292
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
293
+ }
294
+
13
295
  [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Health")]
14
296
  public partial class Health : global::ProtoBuf.IExtensible
15
297
  {
@@ -32,54 +314,108 @@ namespace GameMachine.Messages
32
314
  {
33
315
  public Effect() {}
34
316
 
35
- private int _length = default(int);
317
+ private int? _length;
36
318
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"length", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
37
- [global::System.ComponentModel.DefaultValue(default(int))]
38
319
  public int length
39
320
  {
40
- get { return _length; }
321
+ get { return _length?? default(int); }
41
322
  set { _length = value; }
42
323
  }
43
- private string _name = "";
324
+ [global::System.Xml.Serialization.XmlIgnore]
325
+ [global::System.ComponentModel.Browsable(false)]
326
+ public bool lengthSpecified
327
+ {
328
+ get { return this._length != null; }
329
+ set { if (value == (this._length== null)) this._length = value ? this.length : (int?)null; }
330
+ }
331
+ private bool ShouldSerializelength() { return lengthSpecified; }
332
+ private void Resetlength() { lengthSpecified = false; }
333
+
334
+ private string _name;
44
335
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
45
- [global::System.ComponentModel.DefaultValue("")]
46
336
  public string name
47
337
  {
48
- get { return _name; }
338
+ get { return _name?? ""; }
49
339
  set { _name = value; }
50
340
  }
51
- private int _healthDiff = default(int);
341
+ [global::System.Xml.Serialization.XmlIgnore]
342
+ [global::System.ComponentModel.Browsable(false)]
343
+ public bool nameSpecified
344
+ {
345
+ get { return this._name != null; }
346
+ set { if (value == (this._name== null)) this._name = value ? this.name : (string)null; }
347
+ }
348
+ private bool ShouldSerializename() { return nameSpecified; }
349
+ private void Resetname() { nameSpecified = false; }
350
+
351
+ private int? _healthDiff;
52
352
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"healthDiff", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
53
- [global::System.ComponentModel.DefaultValue(default(int))]
54
353
  public int healthDiff
55
354
  {
56
- get { return _healthDiff; }
355
+ get { return _healthDiff?? default(int); }
57
356
  set { _healthDiff = value; }
58
357
  }
59
- private int _damageDiff = default(int);
358
+ [global::System.Xml.Serialization.XmlIgnore]
359
+ [global::System.ComponentModel.Browsable(false)]
360
+ public bool healthDiffSpecified
361
+ {
362
+ get { return this._healthDiff != null; }
363
+ set { if (value == (this._healthDiff== null)) this._healthDiff = value ? this.healthDiff : (int?)null; }
364
+ }
365
+ private bool ShouldSerializehealthDiff() { return healthDiffSpecified; }
366
+ private void ResethealthDiff() { healthDiffSpecified = false; }
367
+
368
+ private int? _damageDiff;
60
369
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"damageDiff", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
61
- [global::System.ComponentModel.DefaultValue(default(int))]
62
370
  public int damageDiff
63
371
  {
64
- get { return _damageDiff; }
372
+ get { return _damageDiff?? default(int); }
65
373
  set { _damageDiff = value; }
66
374
  }
67
- private int _timePeriod = default(int);
375
+ [global::System.Xml.Serialization.XmlIgnore]
376
+ [global::System.ComponentModel.Browsable(false)]
377
+ public bool damageDiffSpecified
378
+ {
379
+ get { return this._damageDiff != null; }
380
+ set { if (value == (this._damageDiff== null)) this._damageDiff = value ? this.damageDiff : (int?)null; }
381
+ }
382
+ private bool ShouldSerializedamageDiff() { return damageDiffSpecified; }
383
+ private void ResetdamageDiff() { damageDiffSpecified = false; }
384
+
385
+ private int? _timePeriod;
68
386
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"timePeriod", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
69
- [global::System.ComponentModel.DefaultValue(default(int))]
70
387
  public int timePeriod
71
388
  {
72
- get { return _timePeriod; }
389
+ get { return _timePeriod?? default(int); }
73
390
  set { _timePeriod = value; }
74
391
  }
75
- private string _type = "";
392
+ [global::System.Xml.Serialization.XmlIgnore]
393
+ [global::System.ComponentModel.Browsable(false)]
394
+ public bool timePeriodSpecified
395
+ {
396
+ get { return this._timePeriod != null; }
397
+ set { if (value == (this._timePeriod== null)) this._timePeriod = value ? this.timePeriod : (int?)null; }
398
+ }
399
+ private bool ShouldSerializetimePeriod() { return timePeriodSpecified; }
400
+ private void ResettimePeriod() { timePeriodSpecified = false; }
401
+
402
+ private string _type;
76
403
  [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.Default)]
77
- [global::System.ComponentModel.DefaultValue("")]
78
404
  public string type
79
405
  {
80
- get { return _type; }
406
+ get { return _type?? ""; }
81
407
  set { _type = value; }
82
408
  }
409
+ [global::System.Xml.Serialization.XmlIgnore]
410
+ [global::System.ComponentModel.Browsable(false)]
411
+ public bool typeSpecified
412
+ {
413
+ get { return this._type != null; }
414
+ set { if (value == (this._type== null)) this._type = value ? this.type : (string)null; }
415
+ }
416
+ private bool ShouldSerializetype() { return typeSpecified; }
417
+ private void Resettype() { typeSpecified = false; }
418
+
83
419
  private global::ProtoBuf.IExtension extensionObject;
84
420
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
85
421
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -121,14 +457,23 @@ namespace GameMachine.Messages
121
457
  get { return _damage; }
122
458
  set { _damage = value; }
123
459
  }
124
- private int _hitChance = default(int);
460
+ private int? _hitChance;
125
461
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"hitChance", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
126
- [global::System.ComponentModel.DefaultValue(default(int))]
127
462
  public int hitChance
128
463
  {
129
- get { return _hitChance; }
464
+ get { return _hitChance?? default(int); }
130
465
  set { _hitChance = value; }
131
466
  }
467
+ [global::System.Xml.Serialization.XmlIgnore]
468
+ [global::System.ComponentModel.Browsable(false)]
469
+ public bool hitChanceSpecified
470
+ {
471
+ get { return this._hitChance != null; }
472
+ set { if (value == (this._hitChance== null)) this._hitChance = value ? this.hitChance : (int?)null; }
473
+ }
474
+ private bool ShouldSerializehitChance() { return hitChanceSpecified; }
475
+ private void ResethitChance() { hitChanceSpecified = false; }
476
+
132
477
  private int _range;
133
478
  [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"range", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
134
479
  public int range
@@ -136,14 +481,23 @@ namespace GameMachine.Messages
136
481
  get { return _range; }
137
482
  set { _range = value; }
138
483
  }
139
- private string _type = "";
484
+ private string _type;
140
485
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.Default)]
141
- [global::System.ComponentModel.DefaultValue("")]
142
486
  public string type
143
487
  {
144
- get { return _type; }
488
+ get { return _type?? ""; }
145
489
  set { _type = value; }
146
490
  }
491
+ [global::System.Xml.Serialization.XmlIgnore]
492
+ [global::System.ComponentModel.Browsable(false)]
493
+ public bool typeSpecified
494
+ {
495
+ get { return this._type != null; }
496
+ set { if (value == (this._type== null)) this._type = value ? this.type : (string)null; }
497
+ }
498
+ private bool ShouldSerializetype() { return typeSpecified; }
499
+ private void Resettype() { typeSpecified = false; }
500
+
147
501
  private global::ProtoBuf.IExtension extensionObject;
148
502
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
149
503
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -168,14 +522,40 @@ namespace GameMachine.Messages
168
522
  get { return _target; }
169
523
  set { _target = value; }
170
524
  }
171
- private int _combatAbilityId = default(int);
525
+ private int? _combatAbilityId;
172
526
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"combatAbilityId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
173
- [global::System.ComponentModel.DefaultValue(default(int))]
174
527
  public int combatAbilityId
175
528
  {
176
- get { return _combatAbilityId; }
529
+ get { return _combatAbilityId?? default(int); }
177
530
  set { _combatAbilityId = value; }
178
531
  }
532
+ [global::System.Xml.Serialization.XmlIgnore]
533
+ [global::System.ComponentModel.Browsable(false)]
534
+ public bool combatAbilityIdSpecified
535
+ {
536
+ get { return this._combatAbilityId != null; }
537
+ set { if (value == (this._combatAbilityId== null)) this._combatAbilityId = value ? this.combatAbilityId : (int?)null; }
538
+ }
539
+ private bool ShouldSerializecombatAbilityId() { return combatAbilityIdSpecified; }
540
+ private void ResetcombatAbilityId() { combatAbilityIdSpecified = false; }
541
+
542
+ private int? _damage;
543
+ [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"damage", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
544
+ public int damage
545
+ {
546
+ get { return _damage?? default(int); }
547
+ set { _damage = value; }
548
+ }
549
+ [global::System.Xml.Serialization.XmlIgnore]
550
+ [global::System.ComponentModel.Browsable(false)]
551
+ public bool damageSpecified
552
+ {
553
+ get { return this._damage != null; }
554
+ set { if (value == (this._damage== null)) this._damage = value ? this.damage : (int?)null; }
555
+ }
556
+ private bool ShouldSerializedamage() { return damageSpecified; }
557
+ private void Resetdamage() { damageSpecified = false; }
558
+
179
559
  private global::ProtoBuf.IExtension extensionObject;
180
560
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
181
561
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -186,14 +566,23 @@ namespace GameMachine.Messages
186
566
  {
187
567
  public IsPlayer() {}
188
568
 
189
- private bool _enabled = default(bool);
569
+ private bool? _enabled;
190
570
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"enabled", DataFormat = global::ProtoBuf.DataFormat.Default)]
191
- [global::System.ComponentModel.DefaultValue(default(bool))]
192
571
  public bool enabled
193
572
  {
194
- get { return _enabled; }
573
+ get { return _enabled?? default(bool); }
195
574
  set { _enabled = value; }
196
575
  }
576
+ [global::System.Xml.Serialization.XmlIgnore]
577
+ [global::System.ComponentModel.Browsable(false)]
578
+ public bool enabledSpecified
579
+ {
580
+ get { return this._enabled != null; }
581
+ set { if (value == (this._enabled== null)) this._enabled = value ? this.enabled : (bool?)null; }
582
+ }
583
+ private bool ShouldSerializeenabled() { return enabledSpecified; }
584
+ private void Resetenabled() { enabledSpecified = false; }
585
+
197
586
  private global::ProtoBuf.IExtension extensionObject;
198
587
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
199
588
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -218,14 +607,23 @@ namespace GameMachine.Messages
218
607
  get { return _arguments; }
219
608
  }
220
609
 
221
- private bool _returnValue = default(bool);
610
+ private bool? _returnValue;
222
611
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"returnValue", DataFormat = global::ProtoBuf.DataFormat.Default)]
223
- [global::System.ComponentModel.DefaultValue(default(bool))]
224
612
  public bool returnValue
225
613
  {
226
- get { return _returnValue; }
614
+ get { return _returnValue?? default(bool); }
227
615
  set { _returnValue = value; }
228
616
  }
617
+ [global::System.Xml.Serialization.XmlIgnore]
618
+ [global::System.ComponentModel.Browsable(false)]
619
+ public bool returnValueSpecified
620
+ {
621
+ get { return this._returnValue != null; }
622
+ set { if (value == (this._returnValue== null)) this._returnValue = value ? this.returnValue : (bool?)null; }
623
+ }
624
+ private bool ShouldSerializereturnValue() { return returnValueSpecified; }
625
+ private void ResetreturnValue() { returnValueSpecified = false; }
626
+
229
627
  private global::ProtoBuf.IExtension extensionObject;
230
628
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
231
629
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -243,22 +641,40 @@ namespace GameMachine.Messages
243
641
  get { return _name; }
244
642
  set { _name = value; }
245
643
  }
246
- private string _server = "";
644
+ private string _server;
247
645
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"server", DataFormat = global::ProtoBuf.DataFormat.Default)]
248
- [global::System.ComponentModel.DefaultValue("")]
249
646
  public string server
250
647
  {
251
- get { return _server; }
648
+ get { return _server?? ""; }
252
649
  set { _server = value; }
253
650
  }
254
- private string _id = "";
651
+ [global::System.Xml.Serialization.XmlIgnore]
652
+ [global::System.ComponentModel.Browsable(false)]
653
+ public bool serverSpecified
654
+ {
655
+ get { return this._server != null; }
656
+ set { if (value == (this._server== null)) this._server = value ? this.server : (string)null; }
657
+ }
658
+ private bool ShouldSerializeserver() { return serverSpecified; }
659
+ private void Resetserver() { serverSpecified = false; }
660
+
661
+ private string _id;
255
662
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
256
- [global::System.ComponentModel.DefaultValue("")]
257
663
  public string id
258
664
  {
259
- get { return _id; }
665
+ get { return _id?? ""; }
260
666
  set { _id = value; }
261
667
  }
668
+ [global::System.Xml.Serialization.XmlIgnore]
669
+ [global::System.ComponentModel.Browsable(false)]
670
+ public bool idSpecified
671
+ {
672
+ get { return this._id != null; }
673
+ set { if (value == (this._id== null)) this._id = value ? this.id : (string)null; }
674
+ }
675
+ private bool ShouldSerializeid() { return idSpecified; }
676
+ private void Resetid() { idSpecified = false; }
677
+
262
678
  private string _type;
263
679
  [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.Default)]
264
680
  public string type
@@ -283,47 +699,40 @@ namespace GameMachine.Messages
283
699
  get { return _value; }
284
700
  set { _value = value; }
285
701
  }
286
- private bool _internal = default(bool);
702
+ private bool? _internal;
287
703
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"internal", DataFormat = global::ProtoBuf.DataFormat.Default)]
288
- [global::System.ComponentModel.DefaultValue(default(bool))]
289
704
  public bool @internal
290
705
  {
291
- get { return _internal; }
706
+ get { return _internal?? default(bool); }
292
707
  set { _internal = value; }
293
708
  }
294
- private global::ProtoBuf.IExtension extensionObject;
295
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
296
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
297
- }
298
-
299
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RegisterPlayerObserver")]
300
- public partial class RegisterPlayerObserver : global::ProtoBuf.IExtensible
301
- {
302
- public RegisterPlayerObserver() {}
303
-
304
- private string _playerId;
305
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
306
- public string playerId
709
+ [global::System.Xml.Serialization.XmlIgnore]
710
+ [global::System.ComponentModel.Browsable(false)]
711
+ public bool internalSpecified
307
712
  {
308
- get { return _playerId; }
309
- set { _playerId = value; }
713
+ get { return this._internal != null; }
714
+ set { if (value == (this._internal== null)) this._internal = value ? this.@internal : (bool?)null; }
310
715
  }
311
- private string _event;
312
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"event", DataFormat = global::ProtoBuf.DataFormat.Default)]
313
- public string @event
716
+ private bool ShouldSerializeinternal() { return internalSpecified; }
717
+ private void Resetinternal() { internalSpecified = false; }
718
+
719
+ private GameMachine.Messages.TrackData _trackData = null;
720
+ [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"trackData", DataFormat = global::ProtoBuf.DataFormat.Default)]
721
+ [global::System.ComponentModel.DefaultValue(null)]
722
+ public GameMachine.Messages.TrackData trackData
314
723
  {
315
- get { return _event; }
316
- set { _event = value; }
724
+ get { return _trackData; }
725
+ set { _trackData = value; }
317
726
  }
318
727
  private global::ProtoBuf.IExtension extensionObject;
319
728
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
320
729
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
321
730
  }
322
731
 
323
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerRegister")]
324
- public partial class PlayerRegister : global::ProtoBuf.IExtensible
732
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerLogout")]
733
+ public partial class PlayerLogout : global::ProtoBuf.IExtensible
325
734
  {
326
- public PlayerRegister() {}
735
+ public PlayerLogout() {}
327
736
 
328
737
  private string _playerId;
329
738
  [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
@@ -332,70 +741,43 @@ namespace GameMachine.Messages
332
741
  get { return _playerId; }
333
742
  set { _playerId = value; }
334
743
  }
335
- private GameMachine.Messages.ClientConnection _clientConnection;
336
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"clientConnection", DataFormat = global::ProtoBuf.DataFormat.Default)]
337
- public GameMachine.Messages.ClientConnection clientConnection
744
+ private string _authtoken;
745
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"authtoken", DataFormat = global::ProtoBuf.DataFormat.Default)]
746
+ public string authtoken
338
747
  {
339
- get { return _clientConnection; }
340
- set { _clientConnection = value; }
748
+ get { return _authtoken?? ""; }
749
+ set { _authtoken = value; }
341
750
  }
342
- private string _observer = "";
343
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"observer", DataFormat = global::ProtoBuf.DataFormat.Default)]
344
- [global::System.ComponentModel.DefaultValue("")]
345
- public string observer
751
+ [global::System.Xml.Serialization.XmlIgnore]
752
+ [global::System.ComponentModel.Browsable(false)]
753
+ public bool authtokenSpecified
346
754
  {
347
- get { return _observer; }
348
- set { _observer = value; }
755
+ get { return this._authtoken != null; }
756
+ set { if (value == (this._authtoken== null)) this._authtoken = value ? this.authtoken : (string)null; }
349
757
  }
758
+ private bool ShouldSerializeauthtoken() { return authtokenSpecified; }
759
+ private void Resetauthtoken() { authtokenSpecified = false; }
760
+
350
761
  private global::ProtoBuf.IExtension extensionObject;
351
762
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
352
763
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
353
764
  }
354
765
 
355
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Disconnected")]
356
- public partial class Disconnected : global::ProtoBuf.IExtensible
766
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerConnect")]
767
+ public partial class PlayerConnect : global::ProtoBuf.IExtensible
357
768
  {
358
- public Disconnected() {}
769
+ public PlayerConnect() {}
359
770
 
360
- private string _playerId;
361
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
362
- public string playerId
363
- {
364
- get { return _playerId; }
365
- set { _playerId = value; }
366
- }
367
- private string _clientId;
368
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"clientId", DataFormat = global::ProtoBuf.DataFormat.Default)]
369
- public string clientId
370
- {
371
- get { return _clientId; }
372
- set { _clientId = value; }
373
- }
374
771
  private global::ProtoBuf.IExtension extensionObject;
375
772
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
376
773
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
377
774
  }
378
775
 
379
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerLogout")]
380
- public partial class PlayerLogout : global::ProtoBuf.IExtensible
776
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerConnected")]
777
+ public partial class PlayerConnected : global::ProtoBuf.IExtensible
381
778
  {
382
- public PlayerLogout() {}
779
+ public PlayerConnected() {}
383
780
 
384
- private string _playerId;
385
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
386
- public string playerId
387
- {
388
- get { return _playerId; }
389
- set { _playerId = value; }
390
- }
391
- private string _authtoken = "";
392
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"authtoken", DataFormat = global::ProtoBuf.DataFormat.Default)]
393
- [global::System.ComponentModel.DefaultValue("")]
394
- public string authtoken
395
- {
396
- get { return _authtoken; }
397
- set { _authtoken = value; }
398
- }
399
781
  private global::ProtoBuf.IExtension extensionObject;
400
782
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
401
783
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -418,23 +800,6 @@ namespace GameMachine.Messages
418
800
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
419
801
  }
420
802
 
421
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientDisconnect")]
422
- public partial class ClientDisconnect : global::ProtoBuf.IExtensible
423
- {
424
- public ClientDisconnect() {}
425
-
426
- private GameMachine.Messages.ClientConnection _clientConnection;
427
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"clientConnection", DataFormat = global::ProtoBuf.DataFormat.Default)]
428
- public GameMachine.Messages.ClientConnection clientConnection
429
- {
430
- get { return _clientConnection; }
431
- set { _clientConnection = value; }
432
- }
433
- private global::ProtoBuf.IExtension extensionObject;
434
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
435
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
436
- }
437
-
438
803
  [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ErrorMessage")]
439
804
  public partial class ErrorMessage : global::ProtoBuf.IExtensible
440
805
  {
@@ -459,6 +824,102 @@ namespace GameMachine.Messages
459
824
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
460
825
  }
461
826
 
827
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatInvite")]
828
+ public partial class ChatInvite : global::ProtoBuf.IExtensible
829
+ {
830
+ public ChatInvite() {}
831
+
832
+ private string _invitee;
833
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"invitee", DataFormat = global::ProtoBuf.DataFormat.Default)]
834
+ public string invitee
835
+ {
836
+ get { return _invitee; }
837
+ set { _invitee = value; }
838
+ }
839
+ private string _inviter;
840
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"inviter", DataFormat = global::ProtoBuf.DataFormat.Default)]
841
+ public string inviter
842
+ {
843
+ get { return _inviter; }
844
+ set { _inviter = value; }
845
+ }
846
+ private string _channelName;
847
+ [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"channelName", DataFormat = global::ProtoBuf.DataFormat.Default)]
848
+ public string channelName
849
+ {
850
+ get { return _channelName; }
851
+ set { _channelName = value; }
852
+ }
853
+ private string _invite_id;
854
+ [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"invite_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
855
+ public string invite_id
856
+ {
857
+ get { return _invite_id; }
858
+ set { _invite_id = value; }
859
+ }
860
+ private global::ProtoBuf.IExtension extensionObject;
861
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
862
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
863
+ }
864
+
865
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatBanned")]
866
+ public partial class ChatBanned : global::ProtoBuf.IExtensible
867
+ {
868
+ public ChatBanned() {}
869
+
870
+ private string _banned_id;
871
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"banned_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
872
+ public string banned_id
873
+ {
874
+ get { return _banned_id; }
875
+ set { _banned_id = value; }
876
+ }
877
+ private string _channelNname;
878
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"channelNname", DataFormat = global::ProtoBuf.DataFormat.Default)]
879
+ public string channelNname
880
+ {
881
+ get { return _channelNname; }
882
+ set { _channelNname = value; }
883
+ }
884
+ private string _reason;
885
+ [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"reason", DataFormat = global::ProtoBuf.DataFormat.Default)]
886
+ public string reason
887
+ {
888
+ get { return _reason?? ""; }
889
+ set { _reason = value; }
890
+ }
891
+ [global::System.Xml.Serialization.XmlIgnore]
892
+ [global::System.ComponentModel.Browsable(false)]
893
+ public bool reasonSpecified
894
+ {
895
+ get { return this._reason != null; }
896
+ set { if (value == (this._reason== null)) this._reason = value ? this.reason : (string)null; }
897
+ }
898
+ private bool ShouldSerializereason() { return reasonSpecified; }
899
+ private void Resetreason() { reasonSpecified = false; }
900
+
901
+ private global::ProtoBuf.IExtension extensionObject;
902
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
903
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
904
+ }
905
+
906
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatBannedList")]
907
+ public partial class ChatBannedList : global::ProtoBuf.IExtensible
908
+ {
909
+ public ChatBannedList() {}
910
+
911
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.ChatBanned> _chatBanned = new global::System.Collections.Generic.List<GameMachine.Messages.ChatBanned>();
912
+ [global::ProtoBuf.ProtoMember(1, Name=@"chatBanned", DataFormat = global::ProtoBuf.DataFormat.Default)]
913
+ public global::System.Collections.Generic.List<GameMachine.Messages.ChatBanned> chatBanned
914
+ {
915
+ get { return _chatBanned; }
916
+ }
917
+
918
+ private global::ProtoBuf.IExtension extensionObject;
919
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
920
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
921
+ }
922
+
462
923
  [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatChannels")]
463
924
  public partial class ChatChannels : global::ProtoBuf.IExtensible
464
925
  {
@@ -496,6 +957,64 @@ namespace GameMachine.Messages
496
957
  get { return _subscribers; }
497
958
  set { _subscribers = value; }
498
959
  }
960
+ private string _flags;
961
+ [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"flags", DataFormat = global::ProtoBuf.DataFormat.Default)]
962
+ public string flags
963
+ {
964
+ get { return _flags?? ""; }
965
+ set { _flags = value; }
966
+ }
967
+ [global::System.Xml.Serialization.XmlIgnore]
968
+ [global::System.ComponentModel.Browsable(false)]
969
+ public bool flagsSpecified
970
+ {
971
+ get { return this._flags != null; }
972
+ set { if (value == (this._flags== null)) this._flags = value ? this.flags : (string)null; }
973
+ }
974
+ private bool ShouldSerializeflags() { return flagsSpecified; }
975
+ private void Resetflags() { flagsSpecified = false; }
976
+
977
+ private string _invite_id;
978
+ [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"invite_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
979
+ public string invite_id
980
+ {
981
+ get { return _invite_id?? ""; }
982
+ set { _invite_id = value; }
983
+ }
984
+ [global::System.Xml.Serialization.XmlIgnore]
985
+ [global::System.ComponentModel.Browsable(false)]
986
+ public bool invite_idSpecified
987
+ {
988
+ get { return this._invite_id != null; }
989
+ set { if (value == (this._invite_id== null)) this._invite_id = value ? this.invite_id : (string)null; }
990
+ }
991
+ private bool ShouldSerializeinvite_id() { return invite_idSpecified; }
992
+ private void Resetinvite_id() { invite_idSpecified = false; }
993
+
994
+ private global::ProtoBuf.IExtension extensionObject;
995
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
996
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
997
+ }
998
+
999
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatRegister")]
1000
+ public partial class ChatRegister : global::ProtoBuf.IExtensible
1001
+ {
1002
+ public ChatRegister() {}
1003
+
1004
+ private string _chatId;
1005
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"chatId", DataFormat = global::ProtoBuf.DataFormat.Default)]
1006
+ public string chatId
1007
+ {
1008
+ get { return _chatId; }
1009
+ set { _chatId = value; }
1010
+ }
1011
+ private string _registerAs;
1012
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"registerAs", DataFormat = global::ProtoBuf.DataFormat.Default)]
1013
+ public string registerAs
1014
+ {
1015
+ get { return _registerAs; }
1016
+ set { _registerAs = value; }
1017
+ }
499
1018
  private global::ProtoBuf.IExtension extensionObject;
500
1019
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
501
1020
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -561,24 +1080,259 @@ namespace GameMachine.Messages
561
1080
  get { return _type; }
562
1081
  set { _type = value; }
563
1082
  }
564
- private string _senderId = "";
1083
+ private string _senderId;
565
1084
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"senderId", DataFormat = global::ProtoBuf.DataFormat.Default)]
566
- [global::System.ComponentModel.DefaultValue("")]
1085
+ public string senderId
1086
+ {
1087
+ get { return _senderId?? ""; }
1088
+ set { _senderId = value; }
1089
+ }
1090
+ [global::System.Xml.Serialization.XmlIgnore]
1091
+ [global::System.ComponentModel.Browsable(false)]
1092
+ public bool senderIdSpecified
1093
+ {
1094
+ get { return this._senderId != null; }
1095
+ set { if (value == (this._senderId== null)) this._senderId = value ? this.senderId : (string)null; }
1096
+ }
1097
+ private bool ShouldSerializesenderId() { return senderIdSpecified; }
1098
+ private void ResetsenderId() { senderIdSpecified = false; }
1099
+
1100
+ private GameMachine.Messages.Entity _entity = null;
1101
+ [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"entity", DataFormat = global::ProtoBuf.DataFormat.Default)]
1102
+ [global::System.ComponentModel.DefaultValue(null)]
1103
+ public GameMachine.Messages.Entity entity
1104
+ {
1105
+ get { return _entity; }
1106
+ set { _entity = value; }
1107
+ }
1108
+ private global::ProtoBuf.IExtension extensionObject;
1109
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1110
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1111
+ }
1112
+
1113
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatStatus")]
1114
+ public partial class ChatStatus : global::ProtoBuf.IExtensible
1115
+ {
1116
+ public ChatStatus() {}
1117
+
1118
+ private global::ProtoBuf.IExtension extensionObject;
1119
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1120
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1121
+ }
1122
+
1123
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatDestroy")]
1124
+ public partial class ChatDestroy : global::ProtoBuf.IExtensible
1125
+ {
1126
+ public ChatDestroy() {}
1127
+
1128
+ private string _playerId;
1129
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
1130
+ public string playerId
1131
+ {
1132
+ get { return _playerId; }
1133
+ set { _playerId = value; }
1134
+ }
1135
+ private global::ProtoBuf.IExtension extensionObject;
1136
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1137
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1138
+ }
1139
+
1140
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientEvent")]
1141
+ public partial class ClientEvent : global::ProtoBuf.IExtensible
1142
+ {
1143
+ public ClientEvent() {}
1144
+
1145
+ private string _event;
1146
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"event", DataFormat = global::ProtoBuf.DataFormat.Default)]
1147
+ public string @event
1148
+ {
1149
+ get { return _event; }
1150
+ set { _event = value; }
1151
+ }
1152
+ private string _clientId;
1153
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"clientId", DataFormat = global::ProtoBuf.DataFormat.Default)]
1154
+ public string clientId
1155
+ {
1156
+ get { return _clientId; }
1157
+ set { _clientId = value; }
1158
+ }
1159
+ private string _senderId;
1160
+ [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"senderId", DataFormat = global::ProtoBuf.DataFormat.Default)]
567
1161
  public string senderId
568
1162
  {
569
1163
  get { return _senderId; }
570
1164
  set { _senderId = value; }
571
1165
  }
1166
+ private string _playerId;
1167
+ [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
1168
+ public string playerId
1169
+ {
1170
+ get { return _playerId?? ""; }
1171
+ set { _playerId = value; }
1172
+ }
1173
+ [global::System.Xml.Serialization.XmlIgnore]
1174
+ [global::System.ComponentModel.Browsable(false)]
1175
+ public bool playerIdSpecified
1176
+ {
1177
+ get { return this._playerId != null; }
1178
+ set { if (value == (this._playerId== null)) this._playerId = value ? this.playerId : (string)null; }
1179
+ }
1180
+ private bool ShouldSerializeplayerId() { return playerIdSpecified; }
1181
+ private void ResetplayerId() { playerIdSpecified = false; }
1182
+
572
1183
  private global::ProtoBuf.IExtension extensionObject;
573
1184
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
574
1185
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
575
1186
  }
576
1187
 
577
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ChatRegister")]
578
- public partial class ChatRegister : global::ProtoBuf.IExtensible
1188
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientEvents")]
1189
+ public partial class ClientEvents : global::ProtoBuf.IExtensible
579
1190
  {
580
- public ChatRegister() {}
1191
+ public ClientEvents() {}
1192
+
1193
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.ClientEvent> _clientEvent = new global::System.Collections.Generic.List<GameMachine.Messages.ClientEvent>();
1194
+ [global::ProtoBuf.ProtoMember(1, Name=@"clientEvent", DataFormat = global::ProtoBuf.DataFormat.Default)]
1195
+ public global::System.Collections.Generic.List<GameMachine.Messages.ClientEvent> clientEvent
1196
+ {
1197
+ get { return _clientEvent; }
1198
+ }
1199
+
1200
+ private global::ProtoBuf.IExtension extensionObject;
1201
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1202
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1203
+ }
1204
+
1205
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientManagerUnregister")]
1206
+ public partial class ClientManagerUnregister : global::ProtoBuf.IExtensible
1207
+ {
1208
+ public ClientManagerUnregister() {}
1209
+
1210
+ private string _registerType;
1211
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"registerType", DataFormat = global::ProtoBuf.DataFormat.Default)]
1212
+ public string registerType
1213
+ {
1214
+ get { return _registerType?? ""; }
1215
+ set { _registerType = value; }
1216
+ }
1217
+ [global::System.Xml.Serialization.XmlIgnore]
1218
+ [global::System.ComponentModel.Browsable(false)]
1219
+ public bool registerTypeSpecified
1220
+ {
1221
+ get { return this._registerType != null; }
1222
+ set { if (value == (this._registerType== null)) this._registerType = value ? this.registerType : (string)null; }
1223
+ }
1224
+ private bool ShouldSerializeregisterType() { return registerTypeSpecified; }
1225
+ private void ResetregisterType() { registerTypeSpecified = false; }
1226
+
1227
+ private string _name;
1228
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
1229
+ public string name
1230
+ {
1231
+ get { return _name?? ""; }
1232
+ set { _name = value; }
1233
+ }
1234
+ [global::System.Xml.Serialization.XmlIgnore]
1235
+ [global::System.ComponentModel.Browsable(false)]
1236
+ public bool nameSpecified
1237
+ {
1238
+ get { return this._name != null; }
1239
+ set { if (value == (this._name== null)) this._name = value ? this.name : (string)null; }
1240
+ }
1241
+ private bool ShouldSerializename() { return nameSpecified; }
1242
+ private void Resetname() { nameSpecified = false; }
1243
+
1244
+ private global::ProtoBuf.IExtension extensionObject;
1245
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1246
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1247
+ }
1248
+
1249
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientManagerRegister")]
1250
+ public partial class ClientManagerRegister : global::ProtoBuf.IExtensible
1251
+ {
1252
+ public ClientManagerRegister() {}
1253
+
1254
+ private string _events;
1255
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"events", DataFormat = global::ProtoBuf.DataFormat.Default)]
1256
+ public string events
1257
+ {
1258
+ get { return _events?? ""; }
1259
+ set { _events = value; }
1260
+ }
1261
+ [global::System.Xml.Serialization.XmlIgnore]
1262
+ [global::System.ComponentModel.Browsable(false)]
1263
+ public bool eventsSpecified
1264
+ {
1265
+ get { return this._events != null; }
1266
+ set { if (value == (this._events== null)) this._events = value ? this.events : (string)null; }
1267
+ }
1268
+ private bool ShouldSerializeevents() { return eventsSpecified; }
1269
+ private void Resetevents() { eventsSpecified = false; }
1270
+
1271
+ private string _registerType;
1272
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"registerType", DataFormat = global::ProtoBuf.DataFormat.Default)]
1273
+ public string registerType
1274
+ {
1275
+ get { return _registerType?? ""; }
1276
+ set { _registerType = value; }
1277
+ }
1278
+ [global::System.Xml.Serialization.XmlIgnore]
1279
+ [global::System.ComponentModel.Browsable(false)]
1280
+ public bool registerTypeSpecified
1281
+ {
1282
+ get { return this._registerType != null; }
1283
+ set { if (value == (this._registerType== null)) this._registerType = value ? this.registerType : (string)null; }
1284
+ }
1285
+ private bool ShouldSerializeregisterType() { return registerTypeSpecified; }
1286
+ private void ResetregisterType() { registerTypeSpecified = false; }
1287
+
1288
+ private string _name;
1289
+ [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
1290
+ public string name
1291
+ {
1292
+ get { return _name?? ""; }
1293
+ set { _name = value; }
1294
+ }
1295
+ [global::System.Xml.Serialization.XmlIgnore]
1296
+ [global::System.ComponentModel.Browsable(false)]
1297
+ public bool nameSpecified
1298
+ {
1299
+ get { return this._name != null; }
1300
+ set { if (value == (this._name== null)) this._name = value ? this.name : (string)null; }
1301
+ }
1302
+ private bool ShouldSerializename() { return nameSpecified; }
1303
+ private void Resetname() { nameSpecified = false; }
1304
+
1305
+ private global::ProtoBuf.IExtension extensionObject;
1306
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1307
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1308
+ }
1309
+
1310
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ClientManagerEvent")]
1311
+ public partial class ClientManagerEvent : global::ProtoBuf.IExtensible
1312
+ {
1313
+ public ClientManagerEvent() {}
581
1314
 
1315
+ private string _client_id;
1316
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"client_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
1317
+ public string client_id
1318
+ {
1319
+ get { return _client_id; }
1320
+ set { _client_id = value; }
1321
+ }
1322
+ private string _player_id;
1323
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"player_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
1324
+ public string player_id
1325
+ {
1326
+ get { return _player_id; }
1327
+ set { _player_id = value; }
1328
+ }
1329
+ private string _event;
1330
+ [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"event", DataFormat = global::ProtoBuf.DataFormat.Default)]
1331
+ public string @event
1332
+ {
1333
+ get { return _event; }
1334
+ set { _event = value; }
1335
+ }
582
1336
  private global::ProtoBuf.IExtension extensionObject;
583
1337
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
584
1338
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -606,14 +1360,23 @@ namespace GameMachine.Messages
606
1360
  {
607
1361
  public Subscribe() {}
608
1362
 
609
- private string _topic = "";
1363
+ private string _topic;
610
1364
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"topic", DataFormat = global::ProtoBuf.DataFormat.Default)]
611
- [global::System.ComponentModel.DefaultValue("")]
612
1365
  public string topic
613
1366
  {
614
- get { return _topic; }
1367
+ get { return _topic?? ""; }
615
1368
  set { _topic = value; }
616
1369
  }
1370
+ [global::System.Xml.Serialization.XmlIgnore]
1371
+ [global::System.ComponentModel.Browsable(false)]
1372
+ public bool topicSpecified
1373
+ {
1374
+ get { return this._topic != null; }
1375
+ set { if (value == (this._topic== null)) this._topic = value ? this.topic : (string)null; }
1376
+ }
1377
+ private bool ShouldSerializetopic() { return topicSpecified; }
1378
+ private void Resettopic() { topicSpecified = false; }
1379
+
617
1380
  private global::ProtoBuf.IExtension extensionObject;
618
1381
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
619
1382
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -641,14 +1404,23 @@ namespace GameMachine.Messages
641
1404
  {
642
1405
  public Publish() {}
643
1406
 
644
- private string _topic = "";
1407
+ private string _topic;
645
1408
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"topic", DataFormat = global::ProtoBuf.DataFormat.Default)]
646
- [global::System.ComponentModel.DefaultValue("")]
647
1409
  public string topic
648
1410
  {
649
- get { return _topic; }
1411
+ get { return _topic?? ""; }
650
1412
  set { _topic = value; }
651
1413
  }
1414
+ [global::System.Xml.Serialization.XmlIgnore]
1415
+ [global::System.ComponentModel.Browsable(false)]
1416
+ public bool topicSpecified
1417
+ {
1418
+ get { return this._topic != null; }
1419
+ set { if (value == (this._topic== null)) this._topic = value ? this.topic : (string)null; }
1420
+ }
1421
+ private bool ShouldSerializetopic() { return topicSpecified; }
1422
+ private void Resettopic() { topicSpecified = false; }
1423
+
652
1424
  private GameMachine.Messages.Entity _message;
653
1425
  [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
654
1426
  public GameMachine.Messages.Entity message
@@ -656,14 +1428,23 @@ namespace GameMachine.Messages
656
1428
  get { return _message; }
657
1429
  set { _message = value; }
658
1430
  }
659
- private string _path = "";
1431
+ private string _path;
660
1432
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"path", DataFormat = global::ProtoBuf.DataFormat.Default)]
661
- [global::System.ComponentModel.DefaultValue("")]
662
1433
  public string path
663
1434
  {
664
- get { return _path; }
1435
+ get { return _path?? ""; }
665
1436
  set { _path = value; }
666
1437
  }
1438
+ [global::System.Xml.Serialization.XmlIgnore]
1439
+ [global::System.ComponentModel.Browsable(false)]
1440
+ public bool pathSpecified
1441
+ {
1442
+ get { return this._path != null; }
1443
+ set { if (value == (this._path== null)) this._path = value ? this.path : (string)null; }
1444
+ }
1445
+ private bool ShouldSerializepath() { return pathSpecified; }
1446
+ private void Resetpath() { pathSpecified = false; }
1447
+
667
1448
  private global::ProtoBuf.IExtension extensionObject;
668
1449
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
669
1450
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -698,14 +1479,23 @@ namespace GameMachine.Messages
698
1479
  get { return _entityId; }
699
1480
  set { _entityId = value; }
700
1481
  }
701
- private string _playerId = "";
1482
+ private string _playerId;
702
1483
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"playerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
703
- [global::System.ComponentModel.DefaultValue("")]
704
1484
  public string playerId
705
1485
  {
706
- get { return _playerId; }
1486
+ get { return _playerId?? ""; }
707
1487
  set { _playerId = value; }
708
1488
  }
1489
+ [global::System.Xml.Serialization.XmlIgnore]
1490
+ [global::System.ComponentModel.Browsable(false)]
1491
+ public bool playerIdSpecified
1492
+ {
1493
+ get { return this._playerId != null; }
1494
+ set { if (value == (this._playerId== null)) this._playerId = value ? this.playerId : (string)null; }
1495
+ }
1496
+ private bool ShouldSerializeplayerId() { return playerIdSpecified; }
1497
+ private void ResetplayerId() { playerIdSpecified = false; }
1498
+
709
1499
  private global::ProtoBuf.IExtension extensionObject;
710
1500
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
711
1501
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -757,14 +1547,23 @@ namespace GameMachine.Messages
757
1547
  get { return _currentEntityId; }
758
1548
  set { _currentEntityId = value; }
759
1549
  }
760
- private string _updateClass = "";
1550
+ private string _updateClass;
761
1551
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"updateClass", DataFormat = global::ProtoBuf.DataFormat.Default)]
762
- [global::System.ComponentModel.DefaultValue("")]
763
1552
  public string updateClass
764
1553
  {
765
- get { return _updateClass; }
1554
+ get { return _updateClass?? ""; }
766
1555
  set { _updateClass = value; }
767
1556
  }
1557
+ [global::System.Xml.Serialization.XmlIgnore]
1558
+ [global::System.ComponentModel.Browsable(false)]
1559
+ public bool updateClassSpecified
1560
+ {
1561
+ get { return this._updateClass != null; }
1562
+ set { if (value == (this._updateClass== null)) this._updateClass = value ? this.updateClass : (string)null; }
1563
+ }
1564
+ private bool ShouldSerializeupdateClass() { return updateClassSpecified; }
1565
+ private void ResetupdateClass() { updateClassSpecified = false; }
1566
+
768
1567
  private string _updateMethod;
769
1568
  [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"updateMethod", DataFormat = global::ProtoBuf.DataFormat.Default)]
770
1569
  public string updateMethod
@@ -796,46 +1595,57 @@ namespace GameMachine.Messages
796
1595
  get { return _id; }
797
1596
  set { _id = value; }
798
1597
  }
799
- private string _gateway = "";
1598
+ private string _gateway;
800
1599
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"gateway", DataFormat = global::ProtoBuf.DataFormat.Default)]
801
- [global::System.ComponentModel.DefaultValue("")]
802
1600
  public string gateway
803
1601
  {
804
- get { return _gateway; }
1602
+ get { return _gateway?? ""; }
805
1603
  set { _gateway = value; }
806
1604
  }
807
- private string _server = "";
1605
+ [global::System.Xml.Serialization.XmlIgnore]
1606
+ [global::System.ComponentModel.Browsable(false)]
1607
+ public bool gatewaySpecified
1608
+ {
1609
+ get { return this._gateway != null; }
1610
+ set { if (value == (this._gateway== null)) this._gateway = value ? this.gateway : (string)null; }
1611
+ }
1612
+ private bool ShouldSerializegateway() { return gatewaySpecified; }
1613
+ private void Resetgateway() { gatewaySpecified = false; }
1614
+
1615
+ private string _server;
808
1616
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"server", DataFormat = global::ProtoBuf.DataFormat.Default)]
809
- [global::System.ComponentModel.DefaultValue("")]
810
1617
  public string server
811
1618
  {
812
- get { return _server; }
1619
+ get { return _server?? ""; }
813
1620
  set { _server = value; }
814
1621
  }
815
- private global::ProtoBuf.IExtension extensionObject;
816
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
817
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
818
- }
819
-
820
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"PlayerLogin")]
821
- public partial class PlayerLogin : global::ProtoBuf.IExtensible
822
- {
823
- public PlayerLogin() {}
1622
+ [global::System.Xml.Serialization.XmlIgnore]
1623
+ [global::System.ComponentModel.Browsable(false)]
1624
+ public bool serverSpecified
1625
+ {
1626
+ get { return this._server != null; }
1627
+ set { if (value == (this._server== null)) this._server = value ? this.server : (string)null; }
1628
+ }
1629
+ private bool ShouldSerializeserver() { return serverSpecified; }
1630
+ private void Resetserver() { serverSpecified = false; }
824
1631
 
825
- private string _username;
826
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"username", DataFormat = global::ProtoBuf.DataFormat.Default)]
827
- public string username
1632
+ private string _type;
1633
+ [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.Default)]
1634
+ public string type
828
1635
  {
829
- get { return _username; }
830
- set { _username = value; }
1636
+ get { return _type?? ""; }
1637
+ set { _type = value; }
831
1638
  }
832
- private string _password;
833
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"password", DataFormat = global::ProtoBuf.DataFormat.Default)]
834
- public string password
1639
+ [global::System.Xml.Serialization.XmlIgnore]
1640
+ [global::System.ComponentModel.Browsable(false)]
1641
+ public bool typeSpecified
835
1642
  {
836
- get { return _password; }
837
- set { _password = value; }
1643
+ get { return this._type != null; }
1644
+ set { if (value == (this._type== null)) this._type = value ? this.type : (string)null; }
838
1645
  }
1646
+ private bool ShouldSerializetype() { return typeSpecified; }
1647
+ private void Resettype() { typeSpecified = false; }
1648
+
839
1649
  private global::ProtoBuf.IExtension extensionObject;
840
1650
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
841
1651
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -875,64 +1685,6 @@ namespace GameMachine.Messages
875
1685
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
876
1686
  }
877
1687
 
878
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DestroySingleton")]
879
- public partial class DestroySingleton : global::ProtoBuf.IExtensible
880
- {
881
- public DestroySingleton() {}
882
-
883
- private string _id;
884
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
885
- public string id
886
- {
887
- get { return _id; }
888
- set { _id = value; }
889
- }
890
- private global::ProtoBuf.IExtension extensionObject;
891
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
892
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
893
- }
894
-
895
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"NotifySingleton")]
896
- public partial class NotifySingleton : global::ProtoBuf.IExtensible
897
- {
898
- public NotifySingleton() {}
899
-
900
- private string _id;
901
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
902
- public string id
903
- {
904
- get { return _id; }
905
- set { _id = value; }
906
- }
907
- private global::ProtoBuf.IExtension extensionObject;
908
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
909
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
910
- }
911
-
912
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CreateSingleton")]
913
- public partial class CreateSingleton : global::ProtoBuf.IExtensible
914
- {
915
- public CreateSingleton() {}
916
-
917
- private string _id;
918
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
919
- public string id
920
- {
921
- get { return _id; }
922
- set { _id = value; }
923
- }
924
- private string _controller;
925
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"controller", DataFormat = global::ProtoBuf.DataFormat.Default)]
926
- public string controller
927
- {
928
- get { return _controller; }
929
- set { _controller = value; }
930
- }
931
- private global::ProtoBuf.IExtension extensionObject;
932
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
933
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
934
- }
935
-
936
1688
  [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Player")]
937
1689
  public partial class Player : global::ProtoBuf.IExtensible
938
1690
  {
@@ -945,30 +1697,57 @@ namespace GameMachine.Messages
945
1697
  get { return _id; }
946
1698
  set { _id = value; }
947
1699
  }
948
- private string _name = "";
1700
+ private string _name;
949
1701
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
950
- [global::System.ComponentModel.DefaultValue("")]
951
1702
  public string name
952
1703
  {
953
- get { return _name; }
1704
+ get { return _name?? ""; }
954
1705
  set { _name = value; }
955
1706
  }
956
- private bool _authenticated = default(bool);
1707
+ [global::System.Xml.Serialization.XmlIgnore]
1708
+ [global::System.ComponentModel.Browsable(false)]
1709
+ public bool nameSpecified
1710
+ {
1711
+ get { return this._name != null; }
1712
+ set { if (value == (this._name== null)) this._name = value ? this.name : (string)null; }
1713
+ }
1714
+ private bool ShouldSerializename() { return nameSpecified; }
1715
+ private void Resetname() { nameSpecified = false; }
1716
+
1717
+ private bool? _authenticated;
957
1718
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"authenticated", DataFormat = global::ProtoBuf.DataFormat.Default)]
958
- [global::System.ComponentModel.DefaultValue(default(bool))]
959
1719
  public bool authenticated
960
1720
  {
961
- get { return _authenticated; }
1721
+ get { return _authenticated?? default(bool); }
962
1722
  set { _authenticated = value; }
963
1723
  }
964
- private string _authtoken = "";
1724
+ [global::System.Xml.Serialization.XmlIgnore]
1725
+ [global::System.ComponentModel.Browsable(false)]
1726
+ public bool authenticatedSpecified
1727
+ {
1728
+ get { return this._authenticated != null; }
1729
+ set { if (value == (this._authenticated== null)) this._authenticated = value ? this.authenticated : (bool?)null; }
1730
+ }
1731
+ private bool ShouldSerializeauthenticated() { return authenticatedSpecified; }
1732
+ private void Resetauthenticated() { authenticatedSpecified = false; }
1733
+
1734
+ private string _authtoken;
965
1735
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"authtoken", DataFormat = global::ProtoBuf.DataFormat.Default)]
966
- [global::System.ComponentModel.DefaultValue("")]
967
1736
  public string authtoken
968
1737
  {
969
- get { return _authtoken; }
1738
+ get { return _authtoken?? ""; }
970
1739
  set { _authtoken = value; }
971
1740
  }
1741
+ [global::System.Xml.Serialization.XmlIgnore]
1742
+ [global::System.ComponentModel.Browsable(false)]
1743
+ public bool authtokenSpecified
1744
+ {
1745
+ get { return this._authtoken != null; }
1746
+ set { if (value == (this._authtoken== null)) this._authtoken = value ? this.authtoken : (string)null; }
1747
+ }
1748
+ private bool ShouldSerializeauthtoken() { return authtokenSpecified; }
1749
+ private void Resetauthtoken() { authtokenSpecified = false; }
1750
+
972
1751
  private GameMachine.Messages.Transform _transform = null;
973
1752
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"transform", DataFormat = global::ProtoBuf.DataFormat.Default)]
974
1753
  [global::System.ComponentModel.DefaultValue(null)]
@@ -987,54 +1766,142 @@ namespace GameMachine.Messages
987
1766
  {
988
1767
  public Vector3() {}
989
1768
 
990
- private float _x = default(float);
1769
+ private float? _x;
991
1770
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
992
- [global::System.ComponentModel.DefaultValue(default(float))]
993
1771
  public float x
994
1772
  {
995
- get { return _x; }
1773
+ get { return _x?? default(float); }
996
1774
  set { _x = value; }
997
1775
  }
998
- private float _y = default(float);
1776
+ [global::System.Xml.Serialization.XmlIgnore]
1777
+ [global::System.ComponentModel.Browsable(false)]
1778
+ public bool xSpecified
1779
+ {
1780
+ get { return this._x != null; }
1781
+ set { if (value == (this._x== null)) this._x = value ? this.x : (float?)null; }
1782
+ }
1783
+ private bool ShouldSerializex() { return xSpecified; }
1784
+ private void Resetx() { xSpecified = false; }
1785
+
1786
+ private float? _y;
999
1787
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1000
- [global::System.ComponentModel.DefaultValue(default(float))]
1001
1788
  public float y
1002
1789
  {
1003
- get { return _y; }
1790
+ get { return _y?? default(float); }
1004
1791
  set { _y = value; }
1005
1792
  }
1006
- private float _z = default(float);
1793
+ [global::System.Xml.Serialization.XmlIgnore]
1794
+ [global::System.ComponentModel.Browsable(false)]
1795
+ public bool ySpecified
1796
+ {
1797
+ get { return this._y != null; }
1798
+ set { if (value == (this._y== null)) this._y = value ? this.y : (float?)null; }
1799
+ }
1800
+ private bool ShouldSerializey() { return ySpecified; }
1801
+ private void Resety() { ySpecified = false; }
1802
+
1803
+ private float? _z;
1007
1804
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1008
- [global::System.ComponentModel.DefaultValue(default(float))]
1009
1805
  public float z
1010
1806
  {
1011
- get { return _z; }
1807
+ get { return _z?? default(float); }
1012
1808
  set { _z = value; }
1013
1809
  }
1014
- private int _xi = default(int);
1810
+ [global::System.Xml.Serialization.XmlIgnore]
1811
+ [global::System.ComponentModel.Browsable(false)]
1812
+ public bool zSpecified
1813
+ {
1814
+ get { return this._z != null; }
1815
+ set { if (value == (this._z== null)) this._z = value ? this.z : (float?)null; }
1816
+ }
1817
+ private bool ShouldSerializez() { return zSpecified; }
1818
+ private void Resetz() { zSpecified = false; }
1819
+
1820
+ private int? _xi;
1015
1821
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"xi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1016
- [global::System.ComponentModel.DefaultValue(default(int))]
1017
1822
  public int xi
1018
1823
  {
1019
- get { return _xi; }
1824
+ get { return _xi?? default(int); }
1020
1825
  set { _xi = value; }
1021
1826
  }
1022
- private int _yi = default(int);
1827
+ [global::System.Xml.Serialization.XmlIgnore]
1828
+ [global::System.ComponentModel.Browsable(false)]
1829
+ public bool xiSpecified
1830
+ {
1831
+ get { return this._xi != null; }
1832
+ set { if (value == (this._xi== null)) this._xi = value ? this.xi : (int?)null; }
1833
+ }
1834
+ private bool ShouldSerializexi() { return xiSpecified; }
1835
+ private void Resetxi() { xiSpecified = false; }
1836
+
1837
+ private int? _yi;
1023
1838
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"yi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1024
- [global::System.ComponentModel.DefaultValue(default(int))]
1025
1839
  public int yi
1026
1840
  {
1027
- get { return _yi; }
1028
- set { _yi = value; }
1841
+ get { return _yi?? default(int); }
1842
+ set { _yi = value; }
1843
+ }
1844
+ [global::System.Xml.Serialization.XmlIgnore]
1845
+ [global::System.ComponentModel.Browsable(false)]
1846
+ public bool yiSpecified
1847
+ {
1848
+ get { return this._yi != null; }
1849
+ set { if (value == (this._yi== null)) this._yi = value ? this.yi : (int?)null; }
1850
+ }
1851
+ private bool ShouldSerializeyi() { return yiSpecified; }
1852
+ private void Resetyi() { yiSpecified = false; }
1853
+
1854
+ private int? _zi;
1855
+ [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"zi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1856
+ public int zi
1857
+ {
1858
+ get { return _zi?? default(int); }
1859
+ set { _zi = value; }
1860
+ }
1861
+ [global::System.Xml.Serialization.XmlIgnore]
1862
+ [global::System.ComponentModel.Browsable(false)]
1863
+ public bool ziSpecified
1864
+ {
1865
+ get { return this._zi != null; }
1866
+ set { if (value == (this._zi== null)) this._zi = value ? this.zi : (int?)null; }
1867
+ }
1868
+ private bool ShouldSerializezi() { return ziSpecified; }
1869
+ private void Resetzi() { ziSpecified = false; }
1870
+
1871
+ private global::ProtoBuf.IExtension extensionObject;
1872
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1873
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1874
+ }
1875
+
1876
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Polygon")]
1877
+ public partial class Polygon : global::ProtoBuf.IExtensible
1878
+ {
1879
+ public Polygon() {}
1880
+
1881
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.Vector3> _vertex = new global::System.Collections.Generic.List<GameMachine.Messages.Vector3>();
1882
+ [global::ProtoBuf.ProtoMember(1, Name=@"vertex", DataFormat = global::ProtoBuf.DataFormat.Default)]
1883
+ public global::System.Collections.Generic.List<GameMachine.Messages.Vector3> vertex
1884
+ {
1885
+ get { return _vertex; }
1029
1886
  }
1030
- private int _zi = default(int);
1031
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"zi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1032
- [global::System.ComponentModel.DefaultValue(default(int))]
1033
- public int zi
1887
+
1888
+ private global::ProtoBuf.IExtension extensionObject;
1889
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1890
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
1891
+ }
1892
+
1893
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Mesh")]
1894
+ public partial class Mesh : global::ProtoBuf.IExtensible
1895
+ {
1896
+ public Mesh() {}
1897
+
1898
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.Polygon> _polygon = new global::System.Collections.Generic.List<GameMachine.Messages.Polygon>();
1899
+ [global::ProtoBuf.ProtoMember(1, Name=@"polygon", DataFormat = global::ProtoBuf.DataFormat.Default)]
1900
+ public global::System.Collections.Generic.List<GameMachine.Messages.Polygon> polygon
1034
1901
  {
1035
- get { return _zi; }
1036
- set { _zi = value; }
1902
+ get { return _polygon; }
1037
1903
  }
1904
+
1038
1905
  private global::ProtoBuf.IExtension extensionObject;
1039
1906
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1040
1907
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1045,70 +1912,142 @@ namespace GameMachine.Messages
1045
1912
  {
1046
1913
  public Quaternion() {}
1047
1914
 
1048
- private float _w = default(float);
1915
+ private float? _w;
1049
1916
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"w", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1050
- [global::System.ComponentModel.DefaultValue(default(float))]
1051
1917
  public float w
1052
1918
  {
1053
- get { return _w; }
1919
+ get { return _w?? default(float); }
1054
1920
  set { _w = value; }
1055
1921
  }
1056
- private float _x = default(float);
1922
+ [global::System.Xml.Serialization.XmlIgnore]
1923
+ [global::System.ComponentModel.Browsable(false)]
1924
+ public bool wSpecified
1925
+ {
1926
+ get { return this._w != null; }
1927
+ set { if (value == (this._w== null)) this._w = value ? this.w : (float?)null; }
1928
+ }
1929
+ private bool ShouldSerializew() { return wSpecified; }
1930
+ private void Resetw() { wSpecified = false; }
1931
+
1932
+ private float? _x;
1057
1933
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1058
- [global::System.ComponentModel.DefaultValue(default(float))]
1059
1934
  public float x
1060
1935
  {
1061
- get { return _x; }
1936
+ get { return _x?? default(float); }
1062
1937
  set { _x = value; }
1063
1938
  }
1064
- private float _y = default(float);
1939
+ [global::System.Xml.Serialization.XmlIgnore]
1940
+ [global::System.ComponentModel.Browsable(false)]
1941
+ public bool xSpecified
1942
+ {
1943
+ get { return this._x != null; }
1944
+ set { if (value == (this._x== null)) this._x = value ? this.x : (float?)null; }
1945
+ }
1946
+ private bool ShouldSerializex() { return xSpecified; }
1947
+ private void Resetx() { xSpecified = false; }
1948
+
1949
+ private float? _y;
1065
1950
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1066
- [global::System.ComponentModel.DefaultValue(default(float))]
1067
1951
  public float y
1068
1952
  {
1069
- get { return _y; }
1953
+ get { return _y?? default(float); }
1070
1954
  set { _y = value; }
1071
1955
  }
1072
- private float _z = default(float);
1956
+ [global::System.Xml.Serialization.XmlIgnore]
1957
+ [global::System.ComponentModel.Browsable(false)]
1958
+ public bool ySpecified
1959
+ {
1960
+ get { return this._y != null; }
1961
+ set { if (value == (this._y== null)) this._y = value ? this.y : (float?)null; }
1962
+ }
1963
+ private bool ShouldSerializey() { return ySpecified; }
1964
+ private void Resety() { ySpecified = false; }
1965
+
1966
+ private float? _z;
1073
1967
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1074
- [global::System.ComponentModel.DefaultValue(default(float))]
1075
1968
  public float z
1076
1969
  {
1077
- get { return _z; }
1970
+ get { return _z?? default(float); }
1078
1971
  set { _z = value; }
1079
1972
  }
1080
- private int _wi = default(int);
1973
+ [global::System.Xml.Serialization.XmlIgnore]
1974
+ [global::System.ComponentModel.Browsable(false)]
1975
+ public bool zSpecified
1976
+ {
1977
+ get { return this._z != null; }
1978
+ set { if (value == (this._z== null)) this._z = value ? this.z : (float?)null; }
1979
+ }
1980
+ private bool ShouldSerializez() { return zSpecified; }
1981
+ private void Resetz() { zSpecified = false; }
1982
+
1983
+ private int? _wi;
1081
1984
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"wi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1082
- [global::System.ComponentModel.DefaultValue(default(int))]
1083
1985
  public int wi
1084
1986
  {
1085
- get { return _wi; }
1987
+ get { return _wi?? default(int); }
1086
1988
  set { _wi = value; }
1087
1989
  }
1088
- private int _xi = default(int);
1990
+ [global::System.Xml.Serialization.XmlIgnore]
1991
+ [global::System.ComponentModel.Browsable(false)]
1992
+ public bool wiSpecified
1993
+ {
1994
+ get { return this._wi != null; }
1995
+ set { if (value == (this._wi== null)) this._wi = value ? this.wi : (int?)null; }
1996
+ }
1997
+ private bool ShouldSerializewi() { return wiSpecified; }
1998
+ private void Resetwi() { wiSpecified = false; }
1999
+
2000
+ private int? _xi;
1089
2001
  [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"xi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1090
- [global::System.ComponentModel.DefaultValue(default(int))]
1091
2002
  public int xi
1092
2003
  {
1093
- get { return _xi; }
2004
+ get { return _xi?? default(int); }
1094
2005
  set { _xi = value; }
1095
2006
  }
1096
- private int _yi = default(int);
2007
+ [global::System.Xml.Serialization.XmlIgnore]
2008
+ [global::System.ComponentModel.Browsable(false)]
2009
+ public bool xiSpecified
2010
+ {
2011
+ get { return this._xi != null; }
2012
+ set { if (value == (this._xi== null)) this._xi = value ? this.xi : (int?)null; }
2013
+ }
2014
+ private bool ShouldSerializexi() { return xiSpecified; }
2015
+ private void Resetxi() { xiSpecified = false; }
2016
+
2017
+ private int? _yi;
1097
2018
  [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"yi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1098
- [global::System.ComponentModel.DefaultValue(default(int))]
1099
2019
  public int yi
1100
2020
  {
1101
- get { return _yi; }
2021
+ get { return _yi?? default(int); }
1102
2022
  set { _yi = value; }
1103
2023
  }
1104
- private int _zi = default(int);
2024
+ [global::System.Xml.Serialization.XmlIgnore]
2025
+ [global::System.ComponentModel.Browsable(false)]
2026
+ public bool yiSpecified
2027
+ {
2028
+ get { return this._yi != null; }
2029
+ set { if (value == (this._yi== null)) this._yi = value ? this.yi : (int?)null; }
2030
+ }
2031
+ private bool ShouldSerializeyi() { return yiSpecified; }
2032
+ private void Resetyi() { yiSpecified = false; }
2033
+
2034
+ private int? _zi;
1105
2035
  [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"zi", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1106
- [global::System.ComponentModel.DefaultValue(default(int))]
1107
2036
  public int zi
1108
2037
  {
1109
- get { return _zi; }
2038
+ get { return _zi?? default(int); }
1110
2039
  set { _zi = value; }
1111
2040
  }
2041
+ [global::System.Xml.Serialization.XmlIgnore]
2042
+ [global::System.ComponentModel.Browsable(false)]
2043
+ public bool ziSpecified
2044
+ {
2045
+ get { return this._zi != null; }
2046
+ set { if (value == (this._zi== null)) this._zi = value ? this.zi : (int?)null; }
2047
+ }
2048
+ private bool ShouldSerializezi() { return ziSpecified; }
2049
+ private void Resetzi() { ziSpecified = false; }
2050
+
1112
2051
  private global::ProtoBuf.IExtension extensionObject;
1113
2052
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1114
2053
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1162,14 +2101,23 @@ namespace GameMachine.Messages
1162
2101
  {
1163
2102
  public TestObject() {}
1164
2103
 
1165
- private string _optionalString = "";
2104
+ private string _optionalString;
1166
2105
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"optionalString", DataFormat = global::ProtoBuf.DataFormat.Default)]
1167
- [global::System.ComponentModel.DefaultValue("")]
1168
2106
  public string optionalString
1169
2107
  {
1170
- get { return _optionalString; }
2108
+ get { return _optionalString?? ""; }
1171
2109
  set { _optionalString = value; }
1172
2110
  }
2111
+ [global::System.Xml.Serialization.XmlIgnore]
2112
+ [global::System.ComponentModel.Browsable(false)]
2113
+ public bool optionalStringSpecified
2114
+ {
2115
+ get { return this._optionalString != null; }
2116
+ set { if (value == (this._optionalString== null)) this._optionalString = value ? this.optionalString : (string)null; }
2117
+ }
2118
+ private bool ShouldSerializeoptionalString() { return optionalStringSpecified; }
2119
+ private void ResetoptionalString() { optionalStringSpecified = false; }
2120
+
1173
2121
  private string _requiredString;
1174
2122
  [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"requiredString", DataFormat = global::ProtoBuf.DataFormat.Default)]
1175
2123
  public string requiredString
@@ -1184,46 +2132,91 @@ namespace GameMachine.Messages
1184
2132
  get { return _numbers; }
1185
2133
  }
1186
2134
 
1187
- private byte[] _bstring = null;
2135
+ private byte[] _bstring;
1188
2136
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"bstring", DataFormat = global::ProtoBuf.DataFormat.Default)]
1189
- [global::System.ComponentModel.DefaultValue(null)]
1190
2137
  public byte[] bstring
1191
2138
  {
1192
- get { return _bstring; }
2139
+ get { return _bstring?? null; }
1193
2140
  set { _bstring = value; }
1194
2141
  }
1195
- private bool _bvalue = default(bool);
2142
+ [global::System.Xml.Serialization.XmlIgnore]
2143
+ [global::System.ComponentModel.Browsable(false)]
2144
+ public bool bstringSpecified
2145
+ {
2146
+ get { return this._bstring != null; }
2147
+ set { if (value == (this._bstring== null)) this._bstring = value ? this.bstring : (byte[])null; }
2148
+ }
2149
+ private bool ShouldSerializebstring() { return bstringSpecified; }
2150
+ private void Resetbstring() { bstringSpecified = false; }
2151
+
2152
+ private bool? _bvalue;
1196
2153
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"bvalue", DataFormat = global::ProtoBuf.DataFormat.Default)]
1197
- [global::System.ComponentModel.DefaultValue(default(bool))]
1198
2154
  public bool bvalue
1199
2155
  {
1200
- get { return _bvalue; }
2156
+ get { return _bvalue?? default(bool); }
1201
2157
  set { _bvalue = value; }
1202
2158
  }
1203
- private double _dvalue = default(double);
2159
+ [global::System.Xml.Serialization.XmlIgnore]
2160
+ [global::System.ComponentModel.Browsable(false)]
2161
+ public bool bvalueSpecified
2162
+ {
2163
+ get { return this._bvalue != null; }
2164
+ set { if (value == (this._bvalue== null)) this._bvalue = value ? this.bvalue : (bool?)null; }
2165
+ }
2166
+ private bool ShouldSerializebvalue() { return bvalueSpecified; }
2167
+ private void Resetbvalue() { bvalueSpecified = false; }
2168
+
2169
+ private double? _dvalue;
1204
2170
  [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"dvalue", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1205
- [global::System.ComponentModel.DefaultValue(default(double))]
1206
2171
  public double dvalue
1207
2172
  {
1208
- get { return _dvalue; }
2173
+ get { return _dvalue?? default(double); }
1209
2174
  set { _dvalue = value; }
1210
2175
  }
1211
- private float _fvalue = default(float);
2176
+ [global::System.Xml.Serialization.XmlIgnore]
2177
+ [global::System.ComponentModel.Browsable(false)]
2178
+ public bool dvalueSpecified
2179
+ {
2180
+ get { return this._dvalue != null; }
2181
+ set { if (value == (this._dvalue== null)) this._dvalue = value ? this.dvalue : (double?)null; }
2182
+ }
2183
+ private bool ShouldSerializedvalue() { return dvalueSpecified; }
2184
+ private void Resetdvalue() { dvalueSpecified = false; }
2185
+
2186
+ private float? _fvalue;
1212
2187
  [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"fvalue", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
1213
- [global::System.ComponentModel.DefaultValue(default(float))]
1214
2188
  public float fvalue
1215
2189
  {
1216
- get { return _fvalue; }
2190
+ get { return _fvalue?? default(float); }
1217
2191
  set { _fvalue = value; }
1218
2192
  }
1219
- private long _numbers64 = default(long);
2193
+ [global::System.Xml.Serialization.XmlIgnore]
2194
+ [global::System.ComponentModel.Browsable(false)]
2195
+ public bool fvalueSpecified
2196
+ {
2197
+ get { return this._fvalue != null; }
2198
+ set { if (value == (this._fvalue== null)) this._fvalue = value ? this.fvalue : (float?)null; }
2199
+ }
2200
+ private bool ShouldSerializefvalue() { return fvalueSpecified; }
2201
+ private void Resetfvalue() { fvalueSpecified = false; }
2202
+
2203
+ private long? _numbers64;
1220
2204
  [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"numbers64", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1221
- [global::System.ComponentModel.DefaultValue(default(long))]
1222
2205
  public long numbers64
1223
2206
  {
1224
- get { return _numbers64; }
2207
+ get { return _numbers64?? default(long); }
1225
2208
  set { _numbers64 = value; }
1226
2209
  }
2210
+ [global::System.Xml.Serialization.XmlIgnore]
2211
+ [global::System.ComponentModel.Browsable(false)]
2212
+ public bool numbers64Specified
2213
+ {
2214
+ get { return this._numbers64 != null; }
2215
+ set { if (value == (this._numbers64== null)) this._numbers64 = value ? this.numbers64 : (long?)null; }
2216
+ }
2217
+ private bool ShouldSerializenumbers64() { return numbers64Specified; }
2218
+ private void Resetnumbers64() { numbers64Specified = false; }
2219
+
1227
2220
  private readonly global::System.Collections.Generic.List<GameMachine.Messages.Player> _player = new global::System.Collections.Generic.List<GameMachine.Messages.Player>();
1228
2221
  [global::ProtoBuf.ProtoMember(9, Name=@"player", DataFormat = global::ProtoBuf.DataFormat.Default)]
1229
2222
  public global::System.Collections.Generic.List<GameMachine.Messages.Player> player
@@ -1231,14 +2224,23 @@ namespace GameMachine.Messages
1231
2224
  get { return _player; }
1232
2225
  }
1233
2226
 
1234
- private GameMachine.Messages.TestObject.Corpus _corpus = GameMachine.Messages.TestObject.Corpus.UNIVERSAL;
2227
+ private GameMachine.Messages.TestObject.Corpus? _corpus;
1235
2228
  [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"corpus", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1236
- [global::System.ComponentModel.DefaultValue(GameMachine.Messages.TestObject.Corpus.UNIVERSAL)]
1237
2229
  public GameMachine.Messages.TestObject.Corpus corpus
1238
2230
  {
1239
- get { return _corpus; }
2231
+ get { return _corpus?? GameMachine.Messages.TestObject.Corpus.UNIVERSAL; }
1240
2232
  set { _corpus = value; }
1241
2233
  }
2234
+ [global::System.Xml.Serialization.XmlIgnore]
2235
+ [global::System.ComponentModel.Browsable(false)]
2236
+ public bool corpusSpecified
2237
+ {
2238
+ get { return this._corpus != null; }
2239
+ set { if (value == (this._corpus== null)) this._corpus = value ? this.corpus : (GameMachine.Messages.TestObject.Corpus?)null; }
2240
+ }
2241
+ private bool ShouldSerializecorpus() { return corpusSpecified; }
2242
+ private void Resetcorpus() { corpusSpecified = false; }
2243
+
1242
2244
  private readonly global::System.Collections.Generic.List<GameMachine.Messages.TestObject.Corpus> _corpus2 = new global::System.Collections.Generic.List<GameMachine.Messages.TestObject.Corpus>();
1243
2245
  [global::ProtoBuf.ProtoMember(11, Name=@"corpus2", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1244
2246
  public global::System.Collections.Generic.List<GameMachine.Messages.TestObject.Corpus> corpus2
@@ -1282,20 +2284,45 @@ namespace GameMachine.Messages
1282
2284
  {
1283
2285
  public Neighbors() {}
1284
2286
 
1285
- private readonly global::System.Collections.Generic.List<GameMachine.Messages.Entity> _npc = new global::System.Collections.Generic.List<GameMachine.Messages.Entity>();
1286
- [global::ProtoBuf.ProtoMember(1, Name=@"npc", DataFormat = global::ProtoBuf.DataFormat.Default)]
1287
- public global::System.Collections.Generic.List<GameMachine.Messages.Entity> npc
2287
+ private readonly global::System.Collections.Generic.List<GameMachine.Messages.TrackData> _trackData = new global::System.Collections.Generic.List<GameMachine.Messages.TrackData>();
2288
+ [global::ProtoBuf.ProtoMember(1, Name=@"trackData", DataFormat = global::ProtoBuf.DataFormat.Default)]
2289
+ public global::System.Collections.Generic.List<GameMachine.Messages.TrackData> trackData
1288
2290
  {
1289
- get { return _npc; }
2291
+ get { return _trackData; }
1290
2292
  }
1291
2293
 
1292
- private readonly global::System.Collections.Generic.List<GameMachine.Messages.Entity> _player = new global::System.Collections.Generic.List<GameMachine.Messages.Entity>();
1293
- [global::ProtoBuf.ProtoMember(2, Name=@"player", DataFormat = global::ProtoBuf.DataFormat.Default)]
1294
- public global::System.Collections.Generic.List<GameMachine.Messages.Entity> player
2294
+ private global::ProtoBuf.IExtension extensionObject;
2295
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
2296
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
2297
+ }
2298
+
2299
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Neighbor")]
2300
+ public partial class Neighbor : global::ProtoBuf.IExtensible
2301
+ {
2302
+ public Neighbor() {}
2303
+
2304
+ private GameMachine.Messages.TrackData _trackData = null;
2305
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"trackData", DataFormat = global::ProtoBuf.DataFormat.Default)]
2306
+ [global::System.ComponentModel.DefaultValue(null)]
2307
+ public GameMachine.Messages.TrackData trackData
1295
2308
  {
1296
- get { return _player; }
2309
+ get { return _trackData; }
2310
+ set { _trackData = value; }
2311
+ }
2312
+ private GameMachine.Messages.Vector3 _location;
2313
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"location", DataFormat = global::ProtoBuf.DataFormat.Default)]
2314
+ public GameMachine.Messages.Vector3 location
2315
+ {
2316
+ get { return _location; }
2317
+ set { _location = value; }
2318
+ }
2319
+ private string _id;
2320
+ [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
2321
+ public string id
2322
+ {
2323
+ get { return _id; }
2324
+ set { _id = value; }
1297
2325
  }
1298
-
1299
2326
  private global::ProtoBuf.IExtension extensionObject;
1300
2327
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1301
2328
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1306,14 +2333,23 @@ namespace GameMachine.Messages
1306
2333
  {
1307
2334
  public GetNeighbors() {}
1308
2335
 
1309
- private uint _search_radius = default(uint);
2336
+ private uint? _search_radius;
1310
2337
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"search_radius", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
1311
- [global::System.ComponentModel.DefaultValue(default(uint))]
1312
2338
  public uint search_radius
1313
2339
  {
1314
- get { return _search_radius; }
2340
+ get { return _search_radius?? default(uint); }
1315
2341
  set { _search_radius = value; }
1316
2342
  }
2343
+ [global::System.Xml.Serialization.XmlIgnore]
2344
+ [global::System.ComponentModel.Browsable(false)]
2345
+ public bool search_radiusSpecified
2346
+ {
2347
+ get { return this._search_radius != null; }
2348
+ set { if (value == (this._search_radius== null)) this._search_radius = value ? this.search_radius : (uint?)null; }
2349
+ }
2350
+ private bool ShouldSerializesearch_radius() { return search_radiusSpecified; }
2351
+ private void Resetsearch_radius() { search_radiusSpecified = false; }
2352
+
1317
2353
  private GameMachine.Messages.Vector3 _vector3;
1318
2354
  [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"vector3", DataFormat = global::ProtoBuf.DataFormat.Default)]
1319
2355
  public GameMachine.Messages.Vector3 vector3
@@ -1321,22 +2357,40 @@ namespace GameMachine.Messages
1321
2357
  get { return _vector3; }
1322
2358
  set { _vector3 = value; }
1323
2359
  }
1324
- private string _neighborType = "";
2360
+ private string _neighborType;
1325
2361
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"neighborType", DataFormat = global::ProtoBuf.DataFormat.Default)]
1326
- [global::System.ComponentModel.DefaultValue("")]
1327
2362
  public string neighborType
1328
2363
  {
1329
- get { return _neighborType; }
2364
+ get { return _neighborType?? ""; }
1330
2365
  set { _neighborType = value; }
1331
2366
  }
1332
- private string _gridName = "";
2367
+ [global::System.Xml.Serialization.XmlIgnore]
2368
+ [global::System.ComponentModel.Browsable(false)]
2369
+ public bool neighborTypeSpecified
2370
+ {
2371
+ get { return this._neighborType != null; }
2372
+ set { if (value == (this._neighborType== null)) this._neighborType = value ? this.neighborType : (string)null; }
2373
+ }
2374
+ private bool ShouldSerializeneighborType() { return neighborTypeSpecified; }
2375
+ private void ResetneighborType() { neighborTypeSpecified = false; }
2376
+
2377
+ private string _gridName;
1333
2378
  [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"gridName", DataFormat = global::ProtoBuf.DataFormat.Default)]
1334
- [global::System.ComponentModel.DefaultValue("")]
1335
2379
  public string gridName
1336
2380
  {
1337
- get { return _gridName; }
2381
+ get { return _gridName?? ""; }
1338
2382
  set { _gridName = value; }
1339
2383
  }
2384
+ [global::System.Xml.Serialization.XmlIgnore]
2385
+ [global::System.ComponentModel.Browsable(false)]
2386
+ public bool gridNameSpecified
2387
+ {
2388
+ get { return this._gridName != null; }
2389
+ set { if (value == (this._gridName== null)) this._gridName = value ? this.gridName : (string)null; }
2390
+ }
2391
+ private bool ShouldSerializegridName() { return gridNameSpecified; }
2392
+ private void ResetgridName() { gridNameSpecified = false; }
2393
+
1340
2394
  private global::ProtoBuf.IExtension extensionObject;
1341
2395
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1342
2396
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1347,30 +2401,57 @@ namespace GameMachine.Messages
1347
2401
  {
1348
2402
  public MessageRouting() {}
1349
2403
 
1350
- private string _destination = "";
2404
+ private string _destination;
1351
2405
  [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"destination", DataFormat = global::ProtoBuf.DataFormat.Default)]
1352
- [global::System.ComponentModel.DefaultValue("")]
1353
2406
  public string destination
1354
2407
  {
1355
- get { return _destination; }
2408
+ get { return _destination?? ""; }
1356
2409
  set { _destination = value; }
1357
2410
  }
1358
- private string _senderId = "";
2411
+ [global::System.Xml.Serialization.XmlIgnore]
2412
+ [global::System.ComponentModel.Browsable(false)]
2413
+ public bool destinationSpecified
2414
+ {
2415
+ get { return this._destination != null; }
2416
+ set { if (value == (this._destination== null)) this._destination = value ? this.destination : (string)null; }
2417
+ }
2418
+ private bool ShouldSerializedestination() { return destinationSpecified; }
2419
+ private void Resetdestination() { destinationSpecified = false; }
2420
+
2421
+ private string _senderId;
1359
2422
  [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"senderId", DataFormat = global::ProtoBuf.DataFormat.Default)]
1360
- [global::System.ComponentModel.DefaultValue("")]
1361
2423
  public string senderId
1362
2424
  {
1363
- get { return _senderId; }
2425
+ get { return _senderId?? ""; }
1364
2426
  set { _senderId = value; }
1365
2427
  }
1366
- private string _id = "";
2428
+ [global::System.Xml.Serialization.XmlIgnore]
2429
+ [global::System.ComponentModel.Browsable(false)]
2430
+ public bool senderIdSpecified
2431
+ {
2432
+ get { return this._senderId != null; }
2433
+ set { if (value == (this._senderId== null)) this._senderId = value ? this.senderId : (string)null; }
2434
+ }
2435
+ private bool ShouldSerializesenderId() { return senderIdSpecified; }
2436
+ private void ResetsenderId() { senderIdSpecified = false; }
2437
+
2438
+ private string _id;
1367
2439
  [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
1368
- [global::System.ComponentModel.DefaultValue("")]
1369
2440
  public string id
1370
2441
  {
1371
- get { return _id; }
2442
+ get { return _id?? ""; }
1372
2443
  set { _id = value; }
1373
2444
  }
2445
+ [global::System.Xml.Serialization.XmlIgnore]
2446
+ [global::System.ComponentModel.Browsable(false)]
2447
+ public bool idSpecified
2448
+ {
2449
+ get { return this._id != null; }
2450
+ set { if (value == (this._id== null)) this._id = value ? this.id : (string)null; }
2451
+ }
2452
+ private bool ShouldSerializeid() { return idSpecified; }
2453
+ private void Resetid() { idSpecified = false; }
2454
+
1374
2455
  private global::ProtoBuf.IExtension extensionObject;
1375
2456
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1376
2457
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1382,12 +2463,29 @@ namespace GameMachine.Messages
1382
2463
  public NativeBytes() {}
1383
2464
 
1384
2465
  private byte[] _bytes;
1385
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"bytes", DataFormat = global::ProtoBuf.DataFormat.Default)]
2466
+ [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"bytes", DataFormat = global::ProtoBuf.DataFormat.Default)]
1386
2467
  public byte[] bytes
1387
2468
  {
1388
- get { return _bytes; }
2469
+ get { return _bytes?? null; }
1389
2470
  set { _bytes = value; }
1390
2471
  }
2472
+ [global::System.Xml.Serialization.XmlIgnore]
2473
+ [global::System.ComponentModel.Browsable(false)]
2474
+ public bool bytesSpecified
2475
+ {
2476
+ get { return this._bytes != null; }
2477
+ set { if (value == (this._bytes== null)) this._bytes = value ? this.bytes : (byte[])null; }
2478
+ }
2479
+ private bool ShouldSerializebytes() { return bytesSpecified; }
2480
+ private void Resetbytes() { bytesSpecified = false; }
2481
+
2482
+ private readonly global::System.Collections.Generic.List<byte[]> _byteArray = new global::System.Collections.Generic.List<byte[]>();
2483
+ [global::ProtoBuf.ProtoMember(2, Name=@"byteArray", DataFormat = global::ProtoBuf.DataFormat.Default)]
2484
+ public global::System.Collections.Generic.List<byte[]> byteArray
2485
+ {
2486
+ get { return _byteArray; }
2487
+ }
2488
+
1391
2489
  private global::ProtoBuf.IExtension extensionObject;
1392
2490
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1393
2491
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1405,6 +2503,81 @@ namespace GameMachine.Messages
1405
2503
  get { return _json; }
1406
2504
  set { _json = value; }
1407
2505
  }
2506
+ private string _klass;
2507
+ [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"klass", DataFormat = global::ProtoBuf.DataFormat.Default)]
2508
+ public string klass
2509
+ {
2510
+ get { return _klass?? ""; }
2511
+ set { _klass = value; }
2512
+ }
2513
+ [global::System.Xml.Serialization.XmlIgnore]
2514
+ [global::System.ComponentModel.Browsable(false)]
2515
+ public bool klassSpecified
2516
+ {
2517
+ get { return this._klass != null; }
2518
+ set { if (value == (this._klass== null)) this._klass = value ? this.klass : (string)null; }
2519
+ }
2520
+ private bool ShouldSerializeklass() { return klassSpecified; }
2521
+ private void Resetklass() { klassSpecified = false; }
2522
+
2523
+ private global::ProtoBuf.IExtension extensionObject;
2524
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
2525
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
2526
+ }
2527
+
2528
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"JsonStorage")]
2529
+ public partial class JsonStorage : global::ProtoBuf.IExtensible
2530
+ {
2531
+ public JsonStorage() {}
2532
+
2533
+ private string _json;
2534
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"json", DataFormat = global::ProtoBuf.DataFormat.Default)]
2535
+ public string json
2536
+ {
2537
+ get { return _json; }
2538
+ set { _json = value; }
2539
+ }
2540
+ private global::ProtoBuf.IExtension extensionObject;
2541
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
2542
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
2543
+ }
2544
+
2545
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Regions")]
2546
+ public partial class Regions : global::ProtoBuf.IExtensible
2547
+ {
2548
+ public Regions() {}
2549
+
2550
+ private string _regions;
2551
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"regions", DataFormat = global::ProtoBuf.DataFormat.Default)]
2552
+ public string regions
2553
+ {
2554
+ get { return _regions; }
2555
+ set { _regions = value; }
2556
+ }
2557
+ private global::ProtoBuf.IExtension extensionObject;
2558
+ global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
2559
+ { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
2560
+ }
2561
+
2562
+ [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MonoMessage")]
2563
+ public partial class MonoMessage : global::ProtoBuf.IExtensible
2564
+ {
2565
+ public MonoMessage() {}
2566
+
2567
+ private string _klass;
2568
+ [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"klass", DataFormat = global::ProtoBuf.DataFormat.Default)]
2569
+ public string klass
2570
+ {
2571
+ get { return _klass; }
2572
+ set { _klass = value; }
2573
+ }
2574
+ private GameMachine.Messages.Entity _entity;
2575
+ [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"entity", DataFormat = global::ProtoBuf.DataFormat.Default)]
2576
+ public GameMachine.Messages.Entity entity
2577
+ {
2578
+ get { return _entity; }
2579
+ set { _entity = value; }
2580
+ }
1408
2581
  private global::ProtoBuf.IExtension extensionObject;
1409
2582
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1410
2583
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
@@ -1470,14 +2643,6 @@ namespace GameMachine.Messages
1470
2643
  get { return _id; }
1471
2644
  set { _id = value; }
1472
2645
  }
1473
- private GameMachine.Messages.PlayerLogin _playerLogin = null;
1474
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"playerLogin", DataFormat = global::ProtoBuf.DataFormat.Default)]
1475
- [global::System.ComponentModel.DefaultValue(null)]
1476
- public GameMachine.Messages.PlayerLogin playerLogin
1477
- {
1478
- get { return _playerLogin; }
1479
- set { _playerLogin = value; }
1480
- }
1481
2646
  private GameMachine.Messages.Subscribe _subscribe = null;
1482
2647
  [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"subscribe", DataFormat = global::ProtoBuf.DataFormat.Default)]
1483
2648
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1550,14 +2715,6 @@ namespace GameMachine.Messages
1550
2715
  get { return _errorMessage; }
1551
2716
  set { _errorMessage = value; }
1552
2717
  }
1553
- private GameMachine.Messages.RegisterPlayerObserver _registerPlayerObserver = null;
1554
- [global::ProtoBuf.ProtoMember(18, IsRequired = false, Name=@"registerPlayerObserver", DataFormat = global::ProtoBuf.DataFormat.Default)]
1555
- [global::System.ComponentModel.DefaultValue(null)]
1556
- public GameMachine.Messages.RegisterPlayerObserver registerPlayerObserver
1557
- {
1558
- get { return _registerPlayerObserver; }
1559
- set { _registerPlayerObserver = value; }
1560
- }
1561
2718
  private GameMachine.Messages.GetNeighbors _getNeighbors = null;
1562
2719
  [global::ProtoBuf.ProtoMember(21, IsRequired = false, Name=@"getNeighbors", DataFormat = global::ProtoBuf.DataFormat.Default)]
1563
2720
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1598,14 +2755,6 @@ namespace GameMachine.Messages
1598
2755
  get { return _vector3; }
1599
2756
  set { _vector3 = value; }
1600
2757
  }
1601
- private GameMachine.Messages.CreateSingleton _createSingleton = null;
1602
- [global::ProtoBuf.ProtoMember(26, IsRequired = false, Name=@"createSingleton", DataFormat = global::ProtoBuf.DataFormat.Default)]
1603
- [global::System.ComponentModel.DefaultValue(null)]
1604
- public GameMachine.Messages.CreateSingleton createSingleton
1605
- {
1606
- get { return _createSingleton; }
1607
- set { _createSingleton = value; }
1608
- }
1609
2758
  private GameMachine.Messages.EntityList _entityList = null;
1610
2759
  [global::ProtoBuf.ProtoMember(27, IsRequired = false, Name=@"entityList", DataFormat = global::ProtoBuf.DataFormat.Default)]
1611
2760
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1614,38 +2763,40 @@ namespace GameMachine.Messages
1614
2763
  get { return _entityList; }
1615
2764
  set { _entityList = value; }
1616
2765
  }
1617
- private bool _published = default(bool);
2766
+ private bool? _published;
1618
2767
  [global::ProtoBuf.ProtoMember(29, IsRequired = false, Name=@"published", DataFormat = global::ProtoBuf.DataFormat.Default)]
1619
- [global::System.ComponentModel.DefaultValue(default(bool))]
1620
2768
  public bool published
1621
2769
  {
1622
- get { return _published; }
2770
+ get { return _published?? default(bool); }
1623
2771
  set { _published = value; }
1624
2772
  }
1625
- private string _entityType = "";
2773
+ [global::System.Xml.Serialization.XmlIgnore]
2774
+ [global::System.ComponentModel.Browsable(false)]
2775
+ public bool publishedSpecified
2776
+ {
2777
+ get { return this._published != null; }
2778
+ set { if (value == (this._published== null)) this._published = value ? this.published : (bool?)null; }
2779
+ }
2780
+ private bool ShouldSerializepublished() { return publishedSpecified; }
2781
+ private void Resetpublished() { publishedSpecified = false; }
2782
+
2783
+ private string _entityType;
1626
2784
  [global::ProtoBuf.ProtoMember(30, IsRequired = false, Name=@"entityType", DataFormat = global::ProtoBuf.DataFormat.Default)]
1627
- [global::System.ComponentModel.DefaultValue("")]
1628
2785
  public string entityType
1629
2786
  {
1630
- get { return _entityType; }
2787
+ get { return _entityType?? ""; }
1631
2788
  set { _entityType = value; }
1632
2789
  }
1633
- private GameMachine.Messages.NotifySingleton _notifySingleton = null;
1634
- [global::ProtoBuf.ProtoMember(31, IsRequired = false, Name=@"notifySingleton", DataFormat = global::ProtoBuf.DataFormat.Default)]
1635
- [global::System.ComponentModel.DefaultValue(null)]
1636
- public GameMachine.Messages.NotifySingleton notifySingleton
1637
- {
1638
- get { return _notifySingleton; }
1639
- set { _notifySingleton = value; }
1640
- }
1641
- private GameMachine.Messages.DestroySingleton _destroySingleton = null;
1642
- [global::ProtoBuf.ProtoMember(32, IsRequired = false, Name=@"destroySingleton", DataFormat = global::ProtoBuf.DataFormat.Default)]
1643
- [global::System.ComponentModel.DefaultValue(null)]
1644
- public GameMachine.Messages.DestroySingleton destroySingleton
2790
+ [global::System.Xml.Serialization.XmlIgnore]
2791
+ [global::System.ComponentModel.Browsable(false)]
2792
+ public bool entityTypeSpecified
1645
2793
  {
1646
- get { return _destroySingleton; }
1647
- set { _destroySingleton = value; }
2794
+ get { return this._entityType != null; }
2795
+ set { if (value == (this._entityType== null)) this._entityType = value ? this.entityType : (string)null; }
1648
2796
  }
2797
+ private bool ShouldSerializeentityType() { return entityTypeSpecified; }
2798
+ private void ResetentityType() { entityTypeSpecified = false; }
2799
+
1649
2800
  private GameMachine.Messages.PlayerAuthenticated _playerAuthenticated = null;
1650
2801
  [global::ProtoBuf.ProtoMember(37, IsRequired = false, Name=@"playerAuthenticated", DataFormat = global::ProtoBuf.DataFormat.Default)]
1651
2802
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1662,14 +2813,23 @@ namespace GameMachine.Messages
1662
2813
  get { return _playerLogout; }
1663
2814
  set { _playerLogout = value; }
1664
2815
  }
1665
- private bool _sendToPlayer = default(bool);
2816
+ private bool? _sendToPlayer;
1666
2817
  [global::ProtoBuf.ProtoMember(39, IsRequired = false, Name=@"sendToPlayer", DataFormat = global::ProtoBuf.DataFormat.Default)]
1667
- [global::System.ComponentModel.DefaultValue(default(bool))]
1668
2818
  public bool sendToPlayer
1669
2819
  {
1670
- get { return _sendToPlayer; }
2820
+ get { return _sendToPlayer?? default(bool); }
1671
2821
  set { _sendToPlayer = value; }
1672
2822
  }
2823
+ [global::System.Xml.Serialization.XmlIgnore]
2824
+ [global::System.ComponentModel.Browsable(false)]
2825
+ public bool sendToPlayerSpecified
2826
+ {
2827
+ get { return this._sendToPlayer != null; }
2828
+ set { if (value == (this._sendToPlayer== null)) this._sendToPlayer = value ? this.sendToPlayer : (bool?)null; }
2829
+ }
2830
+ private bool ShouldSerializesendToPlayer() { return sendToPlayerSpecified; }
2831
+ private void ResetsendToPlayer() { sendToPlayerSpecified = false; }
2832
+
1673
2833
  private GameMachine.Messages.Rpc _rpc = null;
1674
2834
  [global::ProtoBuf.ProtoMember(40, IsRequired = false, Name=@"rpc", DataFormat = global::ProtoBuf.DataFormat.Default)]
1675
2835
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1686,14 +2846,23 @@ namespace GameMachine.Messages
1686
2846
  get { return _subscribers; }
1687
2847
  set { _subscribers = value; }
1688
2848
  }
1689
- private bool _save = default(bool);
2849
+ private bool? _save;
1690
2850
  [global::ProtoBuf.ProtoMember(42, IsRequired = false, Name=@"save", DataFormat = global::ProtoBuf.DataFormat.Default)]
1691
- [global::System.ComponentModel.DefaultValue(default(bool))]
1692
2851
  public bool save
1693
2852
  {
1694
- get { return _save; }
2853
+ get { return _save?? default(bool); }
1695
2854
  set { _save = value; }
1696
2855
  }
2856
+ [global::System.Xml.Serialization.XmlIgnore]
2857
+ [global::System.ComponentModel.Browsable(false)]
2858
+ public bool saveSpecified
2859
+ {
2860
+ get { return this._save != null; }
2861
+ set { if (value == (this._save== null)) this._save = value ? this.save : (bool?)null; }
2862
+ }
2863
+ private bool ShouldSerializesave() { return saveSpecified; }
2864
+ private void Resetsave() { saveSpecified = false; }
2865
+
1697
2866
  private GameMachine.Messages.MessageRouting _messageRouting = null;
1698
2867
  [global::ProtoBuf.ProtoMember(43, IsRequired = false, Name=@"messageRouting", DataFormat = global::ProtoBuf.DataFormat.Default)]
1699
2868
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1734,24 +2903,196 @@ namespace GameMachine.Messages
1734
2903
  get { return _jsonEntity; }
1735
2904
  set { _jsonEntity = value; }
1736
2905
  }
1737
- private string _destination = "";
2906
+ private string _destination;
1738
2907
  [global::ProtoBuf.ProtoMember(48, IsRequired = false, Name=@"destination", DataFormat = global::ProtoBuf.DataFormat.Default)]
1739
- [global::System.ComponentModel.DefaultValue("")]
1740
2908
  public string destination
1741
2909
  {
1742
- get { return _destination; }
2910
+ get { return _destination?? ""; }
1743
2911
  set { _destination = value; }
1744
2912
  }
1745
- private bool _json = default(bool);
2913
+ [global::System.Xml.Serialization.XmlIgnore]
2914
+ [global::System.ComponentModel.Browsable(false)]
2915
+ public bool destinationSpecified
2916
+ {
2917
+ get { return this._destination != null; }
2918
+ set { if (value == (this._destination== null)) this._destination = value ? this.destination : (string)null; }
2919
+ }
2920
+ private bool ShouldSerializedestination() { return destinationSpecified; }
2921
+ private void Resetdestination() { destinationSpecified = false; }
2922
+
2923
+ private bool? _json;
1746
2924
  [global::ProtoBuf.ProtoMember(49, IsRequired = false, Name=@"json", DataFormat = global::ProtoBuf.DataFormat.Default)]
1747
- [global::System.ComponentModel.DefaultValue(default(bool))]
1748
2925
  public bool json
1749
2926
  {
1750
- get { return _json; }
2927
+ get { return _json?? default(bool); }
1751
2928
  set { _json = value; }
1752
2929
  }
2930
+ [global::System.Xml.Serialization.XmlIgnore]
2931
+ [global::System.ComponentModel.Browsable(false)]
2932
+ public bool jsonSpecified
2933
+ {
2934
+ get { return this._json != null; }
2935
+ set { if (value == (this._json== null)) this._json = value ? this.json : (bool?)null; }
2936
+ }
2937
+ private bool ShouldSerializejson() { return jsonSpecified; }
2938
+ private void Resetjson() { jsonSpecified = false; }
2939
+
2940
+ private string _params;
2941
+ [global::ProtoBuf.ProtoMember(50, IsRequired = false, Name=@"params", DataFormat = global::ProtoBuf.DataFormat.Default)]
2942
+ public string @params
2943
+ {
2944
+ get { return _params?? ""; }
2945
+ set { _params = value; }
2946
+ }
2947
+ [global::System.Xml.Serialization.XmlIgnore]
2948
+ [global::System.ComponentModel.Browsable(false)]
2949
+ public bool paramsSpecified
2950
+ {
2951
+ get { return this._params != null; }
2952
+ set { if (value == (this._params== null)) this._params = value ? this.@params : (string)null; }
2953
+ }
2954
+ private bool ShouldSerializeparams() { return paramsSpecified; }
2955
+ private void Resetparams() { paramsSpecified = false; }
2956
+
2957
+ private GameMachine.Messages.ChatStatus _chatStatus = null;
2958
+ [global::ProtoBuf.ProtoMember(51, IsRequired = false, Name=@"chatStatus", DataFormat = global::ProtoBuf.DataFormat.Default)]
2959
+ [global::System.ComponentModel.DefaultValue(null)]
2960
+ public GameMachine.Messages.ChatStatus chatStatus
2961
+ {
2962
+ get { return _chatStatus; }
2963
+ set { _chatStatus = value; }
2964
+ }
2965
+ private GameMachine.Messages.ChatBannedList _chatBannedList = null;
2966
+ [global::ProtoBuf.ProtoMember(52, IsRequired = false, Name=@"chatBannedList", DataFormat = global::ProtoBuf.DataFormat.Default)]
2967
+ [global::System.ComponentModel.DefaultValue(null)]
2968
+ public GameMachine.Messages.ChatBannedList chatBannedList
2969
+ {
2970
+ get { return _chatBannedList; }
2971
+ set { _chatBannedList = value; }
2972
+ }
2973
+ private GameMachine.Messages.ChatInvite _chatInvite = null;
2974
+ [global::ProtoBuf.ProtoMember(53, IsRequired = false, Name=@"chatInvite", DataFormat = global::ProtoBuf.DataFormat.Default)]
2975
+ [global::System.ComponentModel.DefaultValue(null)]
2976
+ public GameMachine.Messages.ChatInvite chatInvite
2977
+ {
2978
+ get { return _chatInvite; }
2979
+ set { _chatInvite = value; }
2980
+ }
2981
+ private GameMachine.Messages.ClientManagerRegister _clientManagerRegister = null;
2982
+ [global::ProtoBuf.ProtoMember(54, IsRequired = false, Name=@"clientManagerRegister", DataFormat = global::ProtoBuf.DataFormat.Default)]
2983
+ [global::System.ComponentModel.DefaultValue(null)]
2984
+ public GameMachine.Messages.ClientManagerRegister clientManagerRegister
2985
+ {
2986
+ get { return _clientManagerRegister; }
2987
+ set { _clientManagerRegister = value; }
2988
+ }
2989
+ private GameMachine.Messages.ClientManagerUnregister _clientManagerUnregister = null;
2990
+ [global::ProtoBuf.ProtoMember(55, IsRequired = false, Name=@"clientManagerUnregister", DataFormat = global::ProtoBuf.DataFormat.Default)]
2991
+ [global::System.ComponentModel.DefaultValue(null)]
2992
+ public GameMachine.Messages.ClientManagerUnregister clientManagerUnregister
2993
+ {
2994
+ get { return _clientManagerUnregister; }
2995
+ set { _clientManagerUnregister = value; }
2996
+ }
2997
+ private GameMachine.Messages.ClientEvent _clientEvent = null;
2998
+ [global::ProtoBuf.ProtoMember(56, IsRequired = false, Name=@"clientEvent", DataFormat = global::ProtoBuf.DataFormat.Default)]
2999
+ [global::System.ComponentModel.DefaultValue(null)]
3000
+ public GameMachine.Messages.ClientEvent clientEvent
3001
+ {
3002
+ get { return _clientEvent; }
3003
+ set { _clientEvent = value; }
3004
+ }
3005
+ private GameMachine.Messages.ClientEvents _clientEvents = null;
3006
+ [global::ProtoBuf.ProtoMember(57, IsRequired = false, Name=@"clientEvents", DataFormat = global::ProtoBuf.DataFormat.Default)]
3007
+ [global::System.ComponentModel.DefaultValue(null)]
3008
+ public GameMachine.Messages.ClientEvents clientEvents
3009
+ {
3010
+ get { return _clientEvents; }
3011
+ set { _clientEvents = value; }
3012
+ }
3013
+ private GameMachine.Messages.JsonStorage _jsonStorage = null;
3014
+ [global::ProtoBuf.ProtoMember(58, IsRequired = false, Name=@"jsonStorage", DataFormat = global::ProtoBuf.DataFormat.Default)]
3015
+ [global::System.ComponentModel.DefaultValue(null)]
3016
+ public GameMachine.Messages.JsonStorage jsonStorage
3017
+ {
3018
+ get { return _jsonStorage; }
3019
+ set { _jsonStorage = value; }
3020
+ }
3021
+ private GameMachine.Messages.ClientManagerEvent _clientManagerEvent = null;
3022
+ [global::ProtoBuf.ProtoMember(59, IsRequired = false, Name=@"clientManagerEvent", DataFormat = global::ProtoBuf.DataFormat.Default)]
3023
+ [global::System.ComponentModel.DefaultValue(null)]
3024
+ public GameMachine.Messages.ClientManagerEvent clientManagerEvent
3025
+ {
3026
+ get { return _clientManagerEvent; }
3027
+ set { _clientManagerEvent = value; }
3028
+ }
3029
+ private GameMachine.Messages.Regions _regions = null;
3030
+ [global::ProtoBuf.ProtoMember(60, IsRequired = false, Name=@"regions", DataFormat = global::ProtoBuf.DataFormat.Default)]
3031
+ [global::System.ComponentModel.DefaultValue(null)]
3032
+ public GameMachine.Messages.Regions regions
3033
+ {
3034
+ get { return _regions; }
3035
+ set { _regions = value; }
3036
+ }
3037
+ private bool? _fastpath;
3038
+ [global::ProtoBuf.ProtoMember(61, IsRequired = false, Name=@"fastpath", DataFormat = global::ProtoBuf.DataFormat.Default)]
3039
+ public bool fastpath
3040
+ {
3041
+ get { return _fastpath?? default(bool); }
3042
+ set { _fastpath = value; }
3043
+ }
3044
+ [global::System.Xml.Serialization.XmlIgnore]
3045
+ [global::System.ComponentModel.Browsable(false)]
3046
+ public bool fastpathSpecified
3047
+ {
3048
+ get { return this._fastpath != null; }
3049
+ set { if (value == (this._fastpath== null)) this._fastpath = value ? this.fastpath : (bool?)null; }
3050
+ }
3051
+ private bool ShouldSerializefastpath() { return fastpathSpecified; }
3052
+ private void Resetfastpath() { fastpathSpecified = false; }
3053
+
3054
+ private GameMachine.Messages.TrackData _trackData = null;
3055
+ [global::ProtoBuf.ProtoMember(1000, IsRequired = false, Name=@"trackData", DataFormat = global::ProtoBuf.DataFormat.Default)]
3056
+ [global::System.ComponentModel.DefaultValue(null)]
3057
+ public GameMachine.Messages.TrackData trackData
3058
+ {
3059
+ get { return _trackData; }
3060
+ set { _trackData = value; }
3061
+ }
3062
+ private GameMachine.Messages.GameMessage _gameMessage = null;
3063
+ [global::ProtoBuf.ProtoMember(1001, IsRequired = false, Name=@"gameMessage", DataFormat = global::ProtoBuf.DataFormat.Default)]
3064
+ [global::System.ComponentModel.DefaultValue(null)]
3065
+ public GameMachine.Messages.GameMessage gameMessage
3066
+ {
3067
+ get { return _gameMessage; }
3068
+ set { _gameMessage = value; }
3069
+ }
3070
+ private GameMachine.Messages.GameMessages _gameMessages = null;
3071
+ [global::ProtoBuf.ProtoMember(1002, IsRequired = false, Name=@"gameMessages", DataFormat = global::ProtoBuf.DataFormat.Default)]
3072
+ [global::System.ComponentModel.DefaultValue(null)]
3073
+ public GameMachine.Messages.GameMessages gameMessages
3074
+ {
3075
+ get { return _gameMessages; }
3076
+ set { _gameMessages = value; }
3077
+ }
3078
+ private GameMachine.Messages.UnityGameObject _unityGameObject = null;
3079
+ [global::ProtoBuf.ProtoMember(1003, IsRequired = false, Name=@"unityGameObject", DataFormat = global::ProtoBuf.DataFormat.Default)]
3080
+ [global::System.ComponentModel.DefaultValue(null)]
3081
+ public GameMachine.Messages.UnityGameObject unityGameObject
3082
+ {
3083
+ get { return _unityGameObject; }
3084
+ set { _unityGameObject = value; }
3085
+ }
3086
+ private GameMachine.Messages.UnityGameObjects _unityGameObjects = null;
3087
+ [global::ProtoBuf.ProtoMember(1004, IsRequired = false, Name=@"unityGameObjects", DataFormat = global::ProtoBuf.DataFormat.Default)]
3088
+ [global::System.ComponentModel.DefaultValue(null)]
3089
+ public GameMachine.Messages.UnityGameObjects unityGameObjects
3090
+ {
3091
+ get { return _unityGameObjects; }
3092
+ set { _unityGameObjects = value; }
3093
+ }
1753
3094
  private GameMachine.Messages.Health _health = null;
1754
- [global::ProtoBuf.ProtoMember(1000, IsRequired = false, Name=@"health", DataFormat = global::ProtoBuf.DataFormat.Default)]
3095
+ [global::ProtoBuf.ProtoMember(1005, IsRequired = false, Name=@"health", DataFormat = global::ProtoBuf.DataFormat.Default)]
1755
3096
  [global::System.ComponentModel.DefaultValue(null)]
1756
3097
  public GameMachine.Messages.Health health
1757
3098
  {
@@ -1759,7 +3100,7 @@ namespace GameMachine.Messages
1759
3100
  set { _health = value; }
1760
3101
  }
1761
3102
  private GameMachine.Messages.Effect _effect = null;
1762
- [global::ProtoBuf.ProtoMember(1001, IsRequired = false, Name=@"effect", DataFormat = global::ProtoBuf.DataFormat.Default)]
3103
+ [global::ProtoBuf.ProtoMember(1006, IsRequired = false, Name=@"effect", DataFormat = global::ProtoBuf.DataFormat.Default)]
1763
3104
  [global::System.ComponentModel.DefaultValue(null)]
1764
3105
  public GameMachine.Messages.Effect effect
1765
3106
  {
@@ -1767,7 +3108,7 @@ namespace GameMachine.Messages
1767
3108
  set { _effect = value; }
1768
3109
  }
1769
3110
  private GameMachine.Messages.EffectList _effectList = null;
1770
- [global::ProtoBuf.ProtoMember(1002, IsRequired = false, Name=@"effectList", DataFormat = global::ProtoBuf.DataFormat.Default)]
3111
+ [global::ProtoBuf.ProtoMember(1007, IsRequired = false, Name=@"effectList", DataFormat = global::ProtoBuf.DataFormat.Default)]
1771
3112
  [global::System.ComponentModel.DefaultValue(null)]
1772
3113
  public GameMachine.Messages.EffectList effectList
1773
3114
  {
@@ -1775,7 +3116,7 @@ namespace GameMachine.Messages
1775
3116
  set { _effectList = value; }
1776
3117
  }
1777
3118
  private GameMachine.Messages.CombatAbility _combatAbility = null;
1778
- [global::ProtoBuf.ProtoMember(1003, IsRequired = false, Name=@"combatAbility", DataFormat = global::ProtoBuf.DataFormat.Default)]
3119
+ [global::ProtoBuf.ProtoMember(1008, IsRequired = false, Name=@"combatAbility", DataFormat = global::ProtoBuf.DataFormat.Default)]
1779
3120
  [global::System.ComponentModel.DefaultValue(null)]
1780
3121
  public GameMachine.Messages.CombatAbility combatAbility
1781
3122
  {
@@ -1783,7 +3124,7 @@ namespace GameMachine.Messages
1783
3124
  set { _combatAbility = value; }
1784
3125
  }
1785
3126
  private GameMachine.Messages.Attack _attack = null;
1786
- [global::ProtoBuf.ProtoMember(1004, IsRequired = false, Name=@"attack", DataFormat = global::ProtoBuf.DataFormat.Default)]
3127
+ [global::ProtoBuf.ProtoMember(1009, IsRequired = false, Name=@"attack", DataFormat = global::ProtoBuf.DataFormat.Default)]
1787
3128
  [global::System.ComponentModel.DefaultValue(null)]
1788
3129
  public GameMachine.Messages.Attack attack
1789
3130
  {
@@ -1791,7 +3132,7 @@ namespace GameMachine.Messages
1791
3132
  set { _attack = value; }
1792
3133
  }
1793
3134
  private GameMachine.Messages.IsPlayer _isPlayer = null;
1794
- [global::ProtoBuf.ProtoMember(1005, IsRequired = false, Name=@"isPlayer", DataFormat = global::ProtoBuf.DataFormat.Default)]
3135
+ [global::ProtoBuf.ProtoMember(1010, IsRequired = false, Name=@"isPlayer", DataFormat = global::ProtoBuf.DataFormat.Default)]
1795
3136
  [global::System.ComponentModel.DefaultValue(null)]
1796
3137
  public GameMachine.Messages.IsPlayer isPlayer
1797
3138
  {
@@ -1840,14 +3181,6 @@ namespace GameMachine.Messages
1840
3181
  get { return _player; }
1841
3182
  set { _player = value; }
1842
3183
  }
1843
- private GameMachine.Messages.PlayerLogin _playerLogin = null;
1844
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"playerLogin", DataFormat = global::ProtoBuf.DataFormat.Default)]
1845
- [global::System.ComponentModel.DefaultValue(null)]
1846
- public GameMachine.Messages.PlayerLogin playerLogin
1847
- {
1848
- get { return _playerLogin; }
1849
- set { _playerLogin = value; }
1850
- }
1851
3184
  private GameMachine.Messages.ClientConnection _clientConnection = null;
1852
3185
  [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"clientConnection", DataFormat = global::ProtoBuf.DataFormat.Default)]
1853
3186
  [global::System.ComponentModel.DefaultValue(null)]
@@ -1856,16 +3189,8 @@ namespace GameMachine.Messages
1856
3189
  get { return _clientConnection; }
1857
3190
  set { _clientConnection = value; }
1858
3191
  }
1859
- private GameMachine.Messages.ClientDisconnect _clientDisconnect = null;
1860
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"clientDisconnect", DataFormat = global::ProtoBuf.DataFormat.Default)]
1861
- [global::System.ComponentModel.DefaultValue(null)]
1862
- public GameMachine.Messages.ClientDisconnect clientDisconnect
1863
- {
1864
- get { return _clientDisconnect; }
1865
- set { _clientDisconnect = value; }
1866
- }
1867
3192
  private GameMachine.Messages.PlayerLogout _playerLogout = null;
1868
- [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"playerLogout", DataFormat = global::ProtoBuf.DataFormat.Default)]
3193
+ [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"playerLogout", DataFormat = global::ProtoBuf.DataFormat.Default)]
1869
3194
  [global::System.ComponentModel.DefaultValue(null)]
1870
3195
  public GameMachine.Messages.PlayerLogout playerLogout
1871
3196
  {
@@ -1873,13 +3198,63 @@ namespace GameMachine.Messages
1873
3198
  set { _playerLogout = value; }
1874
3199
  }
1875
3200
  private GameMachine.Messages.ErrorMessage _errorMessage = null;
1876
- [global::ProtoBuf.ProtoMember(17, IsRequired = false, Name=@"errorMessage", DataFormat = global::ProtoBuf.DataFormat.Default)]
3201
+ [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"errorMessage", DataFormat = global::ProtoBuf.DataFormat.Default)]
1877
3202
  [global::System.ComponentModel.DefaultValue(null)]
1878
3203
  public GameMachine.Messages.ErrorMessage errorMessage
1879
3204
  {
1880
3205
  get { return _errorMessage; }
1881
3206
  set { _errorMessage = value; }
1882
3207
  }
3208
+ private GameMachine.Messages.PlayerConnect _playerConnect = null;
3209
+ [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"playerConnect", DataFormat = global::ProtoBuf.DataFormat.Default)]
3210
+ [global::System.ComponentModel.DefaultValue(null)]
3211
+ public GameMachine.Messages.PlayerConnect playerConnect
3212
+ {
3213
+ get { return _playerConnect; }
3214
+ set { _playerConnect = value; }
3215
+ }
3216
+ private GameMachine.Messages.PlayerConnected _playerConnected = null;
3217
+ [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"playerConnected", DataFormat = global::ProtoBuf.DataFormat.Default)]
3218
+ [global::System.ComponentModel.DefaultValue(null)]
3219
+ public GameMachine.Messages.PlayerConnected playerConnected
3220
+ {
3221
+ get { return _playerConnected; }
3222
+ set { _playerConnected = value; }
3223
+ }
3224
+ private int? _connection_type;
3225
+ [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"connection_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
3226
+ public int connection_type
3227
+ {
3228
+ get { return _connection_type?? default(int); }
3229
+ set { _connection_type = value; }
3230
+ }
3231
+ [global::System.Xml.Serialization.XmlIgnore]
3232
+ [global::System.ComponentModel.Browsable(false)]
3233
+ public bool connection_typeSpecified
3234
+ {
3235
+ get { return this._connection_type != null; }
3236
+ set { if (value == (this._connection_type== null)) this._connection_type = value ? this.connection_type : (int?)null; }
3237
+ }
3238
+ private bool ShouldSerializeconnection_type() { return connection_typeSpecified; }
3239
+ private void Resetconnection_type() { connection_typeSpecified = false; }
3240
+
3241
+ private bool? _fastpath;
3242
+ [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"fastpath", DataFormat = global::ProtoBuf.DataFormat.Default)]
3243
+ public bool fastpath
3244
+ {
3245
+ get { return _fastpath?? default(bool); }
3246
+ set { _fastpath = value; }
3247
+ }
3248
+ [global::System.Xml.Serialization.XmlIgnore]
3249
+ [global::System.ComponentModel.Browsable(false)]
3250
+ public bool fastpathSpecified
3251
+ {
3252
+ get { return this._fastpath != null; }
3253
+ set { if (value == (this._fastpath== null)) this._fastpath = value ? this.fastpath : (bool?)null; }
3254
+ }
3255
+ private bool ShouldSerializefastpath() { return fastpathSpecified; }
3256
+ private void Resetfastpath() { fastpathSpecified = false; }
3257
+
1883
3258
  private global::ProtoBuf.IExtension extensionObject;
1884
3259
  global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
1885
3260
  { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }