Class: ScriptLoader::PSDKConfig
Overview
PSDK config info so the game knows what’s the context at start
Instance Attribute Summary collapse
-
#running_in_full_screen ⇒ Boolean
readonly
If the game runs in fullscreen.
-
#viewport_offset_x ⇒ Integer
readonly
OffsetX of all the viewports.
-
#viewport_offset_y ⇒ Integer
readonly
OffsetY of all the viewports.
-
#vsync_enabled ⇒ Boolean
readonly
If the game runs in VSYNC.
-
#window_scale ⇒ Integer
readonly
The window scale.
Instance Method Summary collapse
-
#choose_best_resolution ⇒ Array<Integer>
Function that choose the best resolution.
-
#debug? ⇒ Boolean
Tell if the game is in Debug mode.
-
#release? ⇒ Boolean
Tell if the game is in Release mode.
Instance Attribute Details
#running_in_full_screen ⇒ Boolean (readonly)
Returns if the game runs in fullscreen.
8 9 10 |
# File 'docs/000_a_root.rb', line 8 def running_in_full_screen @running_in_full_screen end |
#viewport_offset_x ⇒ Integer (readonly)
Returns OffsetX of all the viewports.
12 13 14 |
# File 'docs/000_a_root.rb', line 12 def @viewport_offset_x end |
#viewport_offset_y ⇒ Integer (readonly)
Returns OffsetY of all the viewports.
14 15 16 |
# File 'docs/000_a_root.rb', line 14 def @viewport_offset_y end |
#vsync_enabled ⇒ Boolean (readonly)
Returns if the game runs in VSYNC.
10 11 12 |
# File 'docs/000_a_root.rb', line 10 def vsync_enabled @vsync_enabled end |
#window_scale ⇒ Integer (readonly)
Returns the window scale.
6 7 8 |
# File 'docs/000_a_root.rb', line 6 def window_scale @window_scale end |
Instance Method Details
#choose_best_resolution ⇒ Array<Integer>
Function that choose the best resolution
25 26 |
# File 'docs/000_a_root.rb', line 25 def choose_best_resolution end |
#debug? ⇒ Boolean
Tell if the game is in Debug mode
21 22 |
# File 'docs/000_a_root.rb', line 21 def debug? end |
#release? ⇒ Boolean
Tell if the game is in Release mode
17 18 |
# File 'docs/000_a_root.rb', line 17 def release? end |