Class: ScriptLoader::PSDKConfig

Inherits:
Object
  • Object
show all
Defined in:
docs/000_a_root.rb

Overview

PSDK config info so the game knows what’s the context at start

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#running_in_full_screenBoolean (readonly)

Returns if the game runs in fullscreen.

Returns:

  • (Boolean)

    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_xInteger (readonly)

Returns OffsetX of all the viewports.

Returns:

  • (Integer)

    OffsetX of all the viewports



12
13
14
# File 'docs/000_a_root.rb', line 12

def viewport_offset_x
  @viewport_offset_x
end

#viewport_offset_yInteger (readonly)

Returns OffsetY of all the viewports.

Returns:

  • (Integer)

    OffsetY of all the viewports



14
15
16
# File 'docs/000_a_root.rb', line 14

def viewport_offset_y
  @viewport_offset_y
end

#vsync_enabledBoolean (readonly)

Returns if the game runs in VSYNC.

Returns:

  • (Boolean)

    if the game runs in VSYNC



10
11
12
# File 'docs/000_a_root.rb', line 10

def vsync_enabled
  @vsync_enabled
end

#window_scaleInteger (readonly)

Returns the window scale.

Returns:

  • (Integer)

    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_resolutionArray<Integer>

Function that choose the best resolution

Returns:

  • (Array<Integer>)


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

Returns:

  • (Boolean)


21
22
# File 'docs/000_a_root.rb', line 21

def debug?
end

#release?Boolean

Tell if the game is in Release mode

Returns:

  • (Boolean)


17
18
# File 'docs/000_a_root.rb', line 17

def release?
end