Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert comments to document #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions addons/com.heroiclabs.nakama/Nakama.gd
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
@tool
extends Node

# The default host address of the server.
## The default host address of the server.
const DEFAULT_HOST : String = "127.0.0.1"

# The default port number of the server.
## The default port number of the server.
const DEFAULT_PORT : int = 7350

# The default timeout for the connections.
## The default timeout for the connections.
const DEFAULT_TIMEOUT = 3

# The default protocol scheme for the client connection.
## The default protocol scheme for the client connection.
const DEFAULT_CLIENT_SCHEME : String = "http"

# The default protocol scheme for the socket connection.
## The default protocol scheme for the socket connection.
const DEFAULT_SOCKET_SCHEME : String = "ws"

# The default log level for the Nakama logger.
## The default log level for the Nakama logger.
const DEFAULT_LOG_LEVEL = NakamaLogger.LOG_LEVEL.DEBUG

var _http_adapter = null
Expand Down
10 changes: 5 additions & 5 deletions addons/com.heroiclabs.nakama/Satori.gd
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@tool
extends Node

# The default host address of the server.
## The default host address of the server.
const DEFAULT_HOST : String = "127.0.0.1"

# The default port number of the server.
## The default port number of the server.
const DEFAULT_PORT : int = 7450

# The default timeout for the connections.
## The default timeout for the connections.
const DEFAULT_TIMEOUT = 15

# The default protocol scheme for the client connection.
## The default protocol scheme for the client connection.
const DEFAULT_CLIENT_SCHEME : String = "http"

# The default log level for the Satori logger.
## The default log level for the Satori logger.
const DEFAULT_LOG_LEVEL = SatoriLogger.LOG_LEVEL.DEBUG

var _http_adapter = null
Expand Down
29 changes: 14 additions & 15 deletions addons/com.heroiclabs.nakama/Satori/Event.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@ extends SatoriAsyncResult

class_name Event

# The name of the event.
## The name of the event.
var name: String

# The time when the event was triggered.
## The time when the event was triggered.
var timestamp: String

# Optional value.
## Optional value.
var value: String

# Event metadata, if any.
## Event metadata, if any.
var metadata: Dictionary

# Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios.
# If not supplied the server will assign a randomly generated unique event identifier.
## Optional event ID assigned by the client, used to de-duplicate in retransmission scenarios. [br]
## If not supplied the server will assign a randomly generated unique event identifier.
var id: String

# The event constructor.
# Initializes a new Event object.
#
# @param name The name of the event.
# @param timestamp The timestamp of the event.
# @param value The value associated with the event (optional).
# @param metadata The metadata associated with the event (optional).
# @param id The ID of the event (optional).
## The event constructor. [br]
## Initializes a new Event object. [br]
## name The name of the event. [br]
## timestamp The timestamp of the event. [br]
## value The value associated with the event (optional). [br]
## metadata The metadata associated with the event (optional). [br]
## id The ID of the event (optional). [br]
func _init(name: String, timestamp: float, value: String = "", metadata: Dictionary = {}, id: String = "", p_exception = null):
super(p_exception)

Expand Down Expand Up @@ -62,4 +61,4 @@ func unix_to_protobuf_timestamp_format(unix_time: float) -> String:
# Construct the protobuf timestamp format string
var timestamp_str = "%s-%s-%sT%s:%s:%s.%sZ" % [year, month, day, hour, minute, second, microsecond]

return timestamp_str
return timestamp_str
Loading