Module: GameMachine

Included in:
Clients::TestClient
Defined in:
server/lib/game_machine/client_manager_updater.rb,
server/lib/game_machine.rb,
server/lib/game_machine/akka.rb,
server/lib/game_machine/model.rb,
server/lib/game_machine/logger.rb,
server/lib/game_machine/routes.rb,
server/lib/game_machine/vector.rb,
server/lib/game_machine/version.rb,
server/lib/game_machine/commands.rb,
server/lib/game_machine/java_lib.rb,
server/lib/game_machine/uniqueid.rb,
server/lib/game_machine/actor/ref.rb,
server/lib/game_machine/object_db.rb,
server/lib/game_machine/actor/base.rb,
server/lib/game_machine/app_config.rb,
server/lib/game_machine/killswitch.rb,
server/lib/game_machine/application.rb,
server/lib/game_machine/models/team.rb,
server/lib/game_machine/actor/system.rb,
server/lib/game_machine/gcache/cache.rb,
server/lib/game_machine/hocon_config.rb,
server/lib/game_machine/models/match.rb,
server/lib/game_machine/models/teams.rb,
server/lib/game_machine/actor/builder.rb,
server/lib/game_machine/actor/factory.rb,
server/lib/game_machine/cloud_updater.rb,
server/lib/game_machine/commands/base.rb,
server/lib/game_machine/console/build.rb,
server/lib/game_machine/message_queue.rb,
server/lib/game_machine/models/region.rb,
server/lib/game_machine/client_manager.rb,
server/lib/game_machine/clients/client.rb,
server/lib/game_machine/commands/proxy.rb,
server/lib/game_machine/console/bundle.rb,
server/lib/game_machine/console/deploy.rb,
server/lib/game_machine/console/server.rb,
server/lib/game_machine/message_buffer.rb,
server/lib/game_machine/cluster_monitor.rb,
server/lib/game_machine/console/install.rb,
server/lib/game_machine/grid_replicator.rb,
server/lib/game_machine/navigation/path.rb,
server/lib/game_machine/actor/game_actor.rb,
server/lib/game_machine/models/echo_test.rb,
server/lib/game_machine/models/end_match.rb,
server/lib/game_machine/models/join_team.rb,
server/lib/game_machine/models/lock_team.rb,
server/lib/game_machine/models/team_base.rb,
server/lib/game_machine/models/team_left.rb,
server/lib/game_machine/game_systems/chat.rb,
server/lib/game_machine/models/find_match.rb,
server/lib/game_machine/models/leave_team.rb,
server/lib/game_machine/navigation/detour.rb,
server/lib/game_machine/protobuf/generate.rb,
server/lib/game_machine/clients/tcp_client.rb,
server/lib/game_machine/clients/udp_client.rb,
server/lib/game_machine/clients/udt_client.rb,
server/lib/game_machine/gcache/cache_stats.rb,
server/lib/game_machine/models/create_team.rb,
server/lib/game_machine/models/player_team.rb,
server/lib/game_machine/models/start_match.rb,
server/lib/game_machine/models/team_invite.rb,
server/lib/game_machine/models/team_joined.rb,
server/lib/game_machine/models/unlock_team.rb,
server/lib/game_machine/reloadable_monitor.rb,
server/lib/game_machine/clients/test_client.rb,
server/lib/game_machine/codeblocks/compiler.rb,
server/lib/game_machine/models/destroy_team.rb,
server/lib/game_machine/console/test_cluster.rb,
server/lib/game_machine/game_systems/devnull.rb,
server/lib/game_machine/helpers/game_message.rb,
server/lib/game_machine/models/player_skills.rb,
server/lib/game_machine/models/teams_request.rb,
server/lib/game_machine/helpers/state_machine.rb,
server/lib/game_machine/commands/chat_commands.rb,
server/lib/game_machine/commands/misc_commands.rb,
server/lib/game_machine/navigation/detour_path.rb,
server/lib/game_machine/protobuf/game_messages.rb,
server/lib/game_machine/commands/message_helper.rb,
server/lib/game_machine/game_systems/chat_topic.rb,
server/lib/game_machine/game_systems/local_echo.rb,
server/lib/game_machine/commands/player_commands.rb,
server/lib/game_machine/game_systems/stress_test.rb,
server/lib/game_machine/game_systems/chat_manager.rb,
server/lib/game_machine/game_systems/private_chat.rb,
server/lib/game_machine/game_systems/team_manager.rb,
server/lib/game_machine/models/team_accept_invite.rb,
server/lib/game_machine/navigation/detour_navmesh.rb,
server/lib/game_machine/commands/datastore_commands.rb,
server/lib/game_machine/game_systems/region_manager.rb,
server/lib/game_machine/game_systems/region_service.rb,
server/lib/game_machine/models/player_status_update.rb,
server/lib/game_machine/default_handlers/team_handler.rb,
server/lib/game_machine/default_handlers/zone_manager.rb,
server/lib/game_machine/game_systems/agents/controller.rb,
server/lib/game_machine/protobuf_extensions/entity_helper.rb

Overview

This class is configured in regions.yml, which is a mapping of regions to classes that handle running the region. In this example we use the same class for both of our regions. Our example regions only vary in which npc's are spawned.

Defined Under Namespace

Modules: Actor, ApiLib, ClientLib, Clients, Codeblocks, Commands, Console, DbLib, DefaultHandlers, GCache, GameSystems, Helpers, JavaLib, Logger, MessageLib, ModelLib, Models, Navigation, NetLib, PathLib, ProtoLib, Protobuf, ProtobufExtensions, RedisLib, TutorialLib, ZeromqLib Classes: Akka, AppConfig, Application, ClientManager, ClientManagerUpdater, CloudUpdater, ClusterMonitor, GridReplicator, HoconConfig, JavaLogger, Killswitch, MessageBuffer, MessageQueue, Model, ObjectDb, ReloadableMonitor, Routes, Uniqueid, Vector

Constant Summary collapse

VERSION =
'1.1.0'

Class Method Summary collapse

Class Method Details

.app_rootObject


12
13
14
# File 'server/lib/game_machine.rb', line 12

def self.app_root
  ENV.fetch('APP_ROOT')
end

.envObject


8
9
10
# File 'server/lib/game_machine.rb', line 8

def self.env
  ENV.fetch('GAME_ENV')
end

.java_rootObject


16
17
18
# File 'server/lib/game_machine.rb', line 16

def self.java_root
  ENV.fetch('JAVA_ROOT')
end