Skip to content

Commit

Permalink
feat: format RivetPluginBridge (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jog1t committed Dec 31, 2023
1 parent fee3518 commit 7c0f146
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions addons/rivet/devtools/rivet_plugin_bridge.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ signal bootstrapped
const RIVET_CONFIGURATION_PATH: String = "res://.rivet"
const RIVET_CONFIGURATION_FILE_PATH: String = "res://.rivet/config.gd"
const RIVET_DEPLOYED_CONFIGURATION_FILE_PATH: String = "res://.rivet_config.gd"
const SCRIPT_TEMPLATE: String ="extends RefCounted\nconst api_endpoint: String = \"{api_endpoint}\"\nconst namespace_token: String = \"{namespace_token}\"\nconst cloud_token: String = \"{cloud_token}\"\nconst game_id: String = \"{game_id}\""
const SCRIPT_TEMPLATE: String = """
extends RefCounted
const api_endpoint: String = \"{api_endpoint}\"
const namespace_token: String = \"{namespace_token}\"
const cloud_token: String = \"{cloud_token}\"
const game_id: String = \"{game_id}\"
"""
const _global := preload("../rivet_global.gd")

static var instance = RivetPluginBridge.new()
static var game_namespaces: Array

static var cli
static var instance = RivetPluginBridge.new()

static func _find_plugin():
var tree: SceneTree = Engine.get_main_loop()
Expand Down Expand Up @@ -45,8 +51,6 @@ static func get_plugin() -> _global:
return plugin.global
return null

static var game_namespaces: Array

func save_configuration():
DirAccess.make_dir_recursive_absolute(RIVET_CONFIGURATION_PATH)

Expand Down

0 comments on commit 7c0f146

Please sign in to comment.