source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/window-equip_item.rb
Ruby
mit
48
master
1,876
#encoding:UTF-8 # Window_EquipItem #============================================================================== # ** Window_EquipItem #------------------------------------------------------------------------------ # This window displays choices when opting to change equipment on the # equipment screen. #===========...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/game-switches.rb
Ruby
mit
48
master
1,350
#encoding:UTF-8 # Game_Switches #============================================================================== # ** Game_Switches #------------------------------------------------------------------------------ # This class handles switches. It's a wrapper for the built-in class "Array." # The instance of this class i...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/game-self_switches.rb
Ruby
mit
48
master
1,251
#encoding:UTF-8 # Game_SelfSwitches #============================================================================== # ** Game_SelfSwitches #------------------------------------------------------------------------------ # This class handles self switches. It's a wrapper for the built-in class # "Hash." The instance of ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/scene-gameover.rb
Ruby
mit
48
master
2,124
#encoding:UTF-8 # Scene_Gameover #============================================================================== # ** Scene_Gameover #------------------------------------------------------------------------------ # This class performs game over screen processing. #======================================================...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/game-event.rb
Ruby
mit
48
master
6,850
#encoding:UTF-8 # Game_Event #============================================================================== # ** Game_Event #------------------------------------------------------------------------------ # This class deals with events. It handles functions including event page # switching via condition determinants,...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/vx_base/window-selectable.rb
Ruby
mit
48
master
9,625
#encoding:UTF-8 # Window_Selectable #============================================================================== # ** Window_Selectable #------------------------------------------------------------------------------ # This window contains cursor movement and scroll functions. #======================================...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/merio/merio.rb
Ruby
mit
48
master
3,645
require 'merio/functions' require 'merio/color_mixer' require 'merio/palette_cache' require 'merio/context' module DrawExt module Merio class MerioPalette < DrawExt::DrawExtPalette attr_accessor :content_pref attr_accessor :text_palette_suggestion def dark_main? self[:light_ui_enb].sha...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/merio/functions.rb
Ruby
mit
48
master
18,723
# # EDOS/lib/drawext/merio/merio.rb # by IceDragon # vr 1.3.0 # CHANGELOG # vr 1.3.0 # A DrawExt::Merio::DrawContext must be created in order to use the # merio functions, the Singleton behaviour has been removed. # # vr 1.2.0 # added #align_label # added #align_gauge # Both ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/merio/context.rb
Ruby
mit
48
master
577
# # EDOS/lib/drawext/merio/context.rb # by IceDragon (mistdragon100@gmail.com) # dc 23/06/2013 # dm 23/06/2013 # vr 1.0.0 module DrawExt module Merio class DrawContext ### mixins include DrawExt::Merio::Functions ### instance_attributes attr_writer :default_font_name ## ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/merio/palette_cache.rb
Ruby
mit
48
master
13,993
# # EDOS/lib/drawext/merio/palette_cache.rb # by IceDragon (mistdragon100@gmail.com) # dc 03/06/2013 # dm 18/06/2013 # vr 1.2.0 # CHANGELOG # vr 1.2.0 # Added new solid colors prefixed with oq (opaque) module DrawExt module Merio def self.rebuild_palette_cache(with_alpha = true) m = ColorM...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/merio/color_mixer.rb
Ruby
mit
48
master
3,974
module DrawExt module Merio class ColorMixer private def make c = Color.new yield c c end def clamp_i(a) [[a, 0].max, 255].min end def iadd_i(a, b) clamp_i(a + b) end def iadd(color, int) make do |c| c.red = iad...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/linked_list/link_node.rb
Ruby
mit
48
master
1,471
class LinkNode attr_accessor :value attr_accessor :nxt attr_accessor :prv include Enumerable def initialize(value) @value = value @nxt = nil @prv = nil end def each(&block) yield self @nxt.each(&block) if @nxt end def shift node = first first = node.nxt first.prv = ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/abstract_method_error/core_ext/module.rb
Ruby
mit
48
master
340
$simport.r 'iek/abstract_method_error/core_ext/module', '1.0.0', 'Module Extension' do |d| d.depend! 'iek/abstract_method_error', '~> 1.0.0' end class Module # @param [Symbol] method_name def abstract(method_name) define_method method_name do |*| fail AbstractMethodError.new(method_name) end me...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/lite_interpreter/lite_interpreter.rb
Ruby
mit
48
master
1,431
# The Lite Interpreter is a stripped down version of the regular game interpreter # it removes most event/character related commands and only leaves the # party and message controls. $simport.r 'iek/lite_interpreter', '1.0.0', 'Light weight interpreter for scripting use' do |h| h.depend! 'better_interpreter', '~> 1.0...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/window-status.rb
Ruby
mit
48
master
3,275
class Window_Status attr_reader :actor def initialize(actor, options = {}) if rect = options[:rect] x, y, w, h = *rect else x = options.fetch(:x, 0) y = options.fetch(:y, 0) w = options.fetch(:width, Graphics.width) h = options.fetch(:height, Graphics.height) end super...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-skill.rb
Ruby
mit
48
master
201
$simport.r 'iek/riviera/scene/skill', '1.0.0', 'Riviera styled Skill Menu' do |h| h.depend 'iek/riviera/scene/item_base', '>= 1.0.0' end class Scene_Skill def header_string 'Skills' end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/load.rb
Ruby
mit
48
master
493
require 'iek/riviera/scene-menu_base' require 'iek/riviera/scene-menu' require 'iek/riviera/scene-item_base' require 'iek/riviera/scene-item_select' require 'iek/riviera/scene-item' require 'iek/riviera/scene-skill' require 'iek/riviera/scene-equip' require 'iek/riviera/scene-status' require 'iek/riviera/scene-field_st...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-field_status.rb
Ruby
mit
48
master
232
$simport.r 'iek/riviera/scene/field_status', '1.0.0', 'Riviera Field Status Menu' do |h| h.depend 'iek/riviera/scene/status', '>= 1.0.0' end class Scene_FieldStatus < Scene_Status def header_string 'Field Status' end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-item_select.rb
Ruby
mit
48
master
268
$simport.r 'iek/riviera/scene/item_select', '1.0.0', 'Riviera styled ItemSelect Menu' do |h| h.depend 'iek/riviera/scene/menu_base', '>= 1.0.0' end class Scene_ItemSelect < Scene_MenuBase def start super end def header_string 'Item Select' end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-menu_base.rb
Ruby
mit
48
master
1,387
$simport.r 'iek/riviera/scene/menu_base', '1.0.0', 'Patch for Menu Headers' do |h| h.depend 'iek/rgss3_ext/bitmap', '>= 1.0.0' h.depend 'iek/rgss3_ext/font', '>= 1.0.0' h.depend 'iek/text', '>= 1.0.0' end class Scene_MenuBase def start super create_background create_header create_content_rect ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-menu.rb
Ruby
mit
48
master
1,169
$simport.r 'iek/riviera/scene/menu', '1.0.0', 'Riviera styled Main Menu' do |h| h.depend 'iek/riviera/scene/menu_base', '>= 1.0.0' end class Scene_Menu def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler :item, method(:command_item) @command_window.set_ha...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-equip.rb
Ruby
mit
48
master
200
$simport.r 'iek/riviera/scene/equip', '1.0.0', 'Riviera styled Equip Menu' do |h| h.depend 'iek/riviera/scene/menu_base', '>= 1.0.0' end class Scene_Equip def header_string 'Equip' end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-status.rb
Ruby
mit
48
master
816
$simport.r 'iek/riviera/scene/status', '1.0.0', 'Riviera styled Status Menu' do |h| h.depend 'iek/riviera/scene/menu_base', '>= 1.0.0' end class Scene_Status def start super create_status_window create_tail end def create_status_window rect = @content_rect.dup rect.width /= 2 @status_w...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/riviera/scene-item.rb
Ruby
mit
48
master
976
$simport.r 'iek/riviera/scene/item', '1.0.0', 'Riviera styled Item Menu' do |h| h.depend 'iek/riviera/scene/item_base', '>= 1.0.0' end class Scene_Item def create_category_window @category_window = Window_ItemCategory.new @category_window.viewport = @viewport @category_window.help_window = @help_window...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/layout/layout.rb
Ruby
mit
48
master
1,066
class LayoutRect attr_reader :rect def initialize(rect) @rect = rect.dup.freeze end def to_rect @rect.dup end def x @rect.x end def y @rect.y end def width @rect.width end def height @rect.height end def cx @rect.cx end def cy @rect.cy end def...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_interpreter/better_interpreter.rb
Ruby
mit
48
master
21,511
$simport.r 'iek/better_interpreter', '1.0.0', 'Improves on the existing interpter by wrapping globals in methods' class Game_Interpreter def game_temp $game_temp end def game_system $game_system end def game_timer $game_timer end def game_message $game_message end def game_switche...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_variables/better_variables.rb
Ruby
mit
48
master
964
$simport.r 'iek/better_variables', '1.0.0', 'Improves the functionality of default Game_Variables' class Game_Variables include Enumerable SIZE = 1024 ## # initialize def initialize @data = Array.new(SIZE, false) end ## # def each return to_enum(__method__) unless block_given? @data.ea...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_variables/callbacks.rb
Ruby
mit
48
master
363
$simport.r 'iek/better_variables/callbacks', '1.0.0', 'Utilizes iek callbacks for better_variables' do |h| h.depend 'iek/better_variables', '>= 1.0.0' h.depend! 'iek/callbacks', '>= 1.0.0' end class Game_Variables include Mixin::Callback def on_change(id, org, now) $game_map.need_refresh = true try_ca...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_data/better_data.rb
Ruby
mit
48
master
3,473
$simport.r 'iek/better_data', '1.0.0', 'exposes more functionality for DataManager' module DataManager def self.use_normal_database_for_battle? false end def self.game_data_extname '.rvdata2' end def self.savefile_data_extname '.rvdata2' end def self.load_game_data(basename) load_data(...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_data/callbacks.rb
Ruby
mit
48
master
584
$simport.r 'iek/better_data/callbacks', '1.0.0', 'Utilizes iek callbacks for better_data' do |h| h.depend 'iek/better_data', '>= 1.0.0' h.depend! 'iek/callbacks', '>= 1.0.0' end module DataManager include Mixin::Callback def self.pre_load_database(dbname) try_callback(:pre_load_database, dbname) end ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/mouse.rb
Ruby
mit
48
master
3,165
$simport.r 'iek/win32api/mouse', '1.0.0', 'Win32 Mouse module' do |h| h.depend! 'iek/win32api/mouse/buttons', '~> 1.0.0' h.depend! 'iek/win32api/win32/user32', '~> 1.0.0' end ## # Windows compliant Mouse class for RPG Maker VX Ace # Provides a bare minimal API module Win32 class Mouse class Point2 def...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/input.rb
Ruby
mit
48
master
888
$simport.r 'iek/win32api/input', '1.0.0', 'Input module' do |h| h.depend! 'iek/win32api/win32/kernel32', '~> 1.0.0' h.depend! 'iek/win32api/win32/user32', '~> 1.0.0' end module Win32 module Input class << self # @return [Integer] Pointer to the Window Handle attr_reader :client_id end ##...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/keyboard.rb
Ruby
mit
48
master
2,199
$simport.r 'iek/win32api/keyboard', '1.0.0', 'Win32 Keyboard module' do |h| h.depend! 'iek/win32api/keyboard/keys', '~> 1.0.0' h.depend! 'iek/win32api/win32/user32', '~> 1.0.0' end # Windows compliant Keyboard class for RPG Maker VX Ace # Provides a bare minimal API module Win32 class Keyboard # Defines a Ha...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/link_object.rb
Ruby
mit
48
master
666
$simport.r 'iek/win32api/link_object', '1.0.0', 'Wrapper class for Win32API functions' module Win32 class LinkObject def initialize @cache = {} end def func(dll, *args) Win32API.new(dll, *args) end def dll_name @dll_name ||= self.class.dll_name.freeze end def self.dll...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/win32/user32.rb
Ruby
mit
48
master
926
$simport.r('iek/win32api/win32/user32', '1.0.0', 'User32 link object') do |h| h.depend!('iek/win32api/link_object', '~> 1.0.0') end module Win32 class User32 < LinkObject dll 'user32' ## # :nodoc: def_func :get_async_key_state, 'GetAsyncKeyState', 'i', 'i' ## # :nodoc: def_func :get_k...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/win32/kernel32.rb
Ruby
mit
48
master
319
$simport.r('iek/win32api/win32/kernel32', '1.0.0', 'Kernel32 link object') do |h| h.depend!('iek/win32api/link_object', '~> 1.0.0') end module Win32 class Kernel32 < LinkObject dll 'kernel32' ## # :nodoc: def_func :get_private_profile_string_a, 'GetPrivateProfileStringA', 'pppplp', 'l' end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/keyboard/keys.rb
Ruby
mit
48
master
15,048
$simport.r 'iek/win32api/keyboard/keys', '1.0.0', 'Keyboard Keys module' module Win32 class Keyboard # A list of all the VK_* key codes from the Windows library # http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx module Keys KEYS = [] ### #NULL ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/win32api/mouse/buttons.rb
Ruby
mit
48
master
1,029
$simport.r('iek/win32api/mouse/buttons', '1.0.0', 'Mouse Buttons module') module Win32 class Mouse ## # A list of the mouse related VK_* key codes from the Windows library # http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx module Buttons BUTTONS = [] ### #...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_self_switches/better_self_switches.rb
Ruby
mit
48
master
1,141
$simport.r 'iek/better_self_switches', '1.0.0', 'Improves the functionality of default Game_SelfSwitches' class Game_SelfSwitches include Enumerable ## # initialize def initialize @data = {} end ## # @yieldparam [Array] # @yieldparam [Boolean] def each return to_enum(__method__) unless bloc...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_self_switches/callbacks.rb
Ruby
mit
48
master
378
$simport.r 'iek/better_self_switches/callbacks', '1.0.0', 'Utilizes iek callbacks for better_self_switches' do |h| h.depend 'iek/better_self_switches', '>= 1.0.0' h.depend! 'iek/callbacks', '>= 1.0.0' end class Game_SelfSwitches include Mixin::Callback def on_change(id, org, now) $game_map.need_refresh = ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/cache_awesome/cache_awesome.rb
Ruby
mit
48
master
2,445
$simport.r 'iek/cache_awesome', '1.0.0', 'Improves the functionality of default Cache' ### prepare for loading the new cache module Object.send(:remove_const, :Cache) if Object.constants.include?(:Cache) module Cache class CacheBitmap < Bitmap attr_accessor :cache_key end Loader = Struct.new(:id, :dirname, ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/cache_awesome/vxa-default.rb
Ruby
mit
48
master
494
module Cache ### loaders new_loader :animation, 'Animations' new_loader :battleback1, 'Battlebacks1' new_loader :battleback2, 'Battlebacks2' new_loader :battler, 'Battlers' new_loader :character, 'Characters' new_loader :face, 'Faces' new_loader :parallax, 'Parallaxes' new_loader :pi...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/database_uri/database_uri.rb
Ruby
mit
48
master
1,940
class DatabaseUri # Taken from ruby stdlib ruby/2.1.0/cgi/core.rb @@accept_charset = "UTF-8" unless defined?(@@accept_charset) # URL-encode a string. # url_encoded_string = CGI::escape("'Stop!' said Fred") # # => "%27Stop%21%27+said+Fred" def self.escape(string) encoding = string.encoding st...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/database_uri/uri/common.rb
Ruby
mit
48
master
36,871
#-- # = uri/common.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # Revision:: $Id: common.rb 44187 2013-12-13 23:22:41Z hsbt $ # License:: # You can redistribute it and/or modify it under the same term as Ruby. # # See URI for general documentation # module URI # # Includes URI::REGEXP::PATTERN # module...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/database_uri/uri/generic.rb
Ruby
mit
48
master
39,111
# = uri/generic.rb # # Author:: Akira Yamada <akira@ruby-lang.org> # License:: You can redistribute it and/or modify it under the same term as Ruby. # Revision:: $Id: generic.rb 43918 2013-11-29 14:43:01Z a_matsuda $ # # See URI for general documentation # # require 'uri/common' # not used for iek module URI # #...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/render_manager/render_manager.rb
Ruby
mit
48
master
1,676
$simport.r 'iek/render_manager', '1.0.0', 'AKA. Window Manager' class RenderManager include Enumerable def initialize @elements = [] @state_cache = [] @ticks = 0 @disposed = false end def all @elements.to_a end def each(&block) @elements.each(&block) end def clear @eleme...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/render_manager/vxa/scene-base.rb
Ruby
mit
48
master
891
$simport.r 'iek/render_manager/vxa/scene-base', '1.0.0', 'RenderManager VXA SceneBase Integration' do |d| d.depend 'iek/render_manager', '~> 1.0' end class Scene_Base def main start post_start update until scene_changing? pre_terminate terminate end def start @window_manager = RenderMa...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/scene_loading/scene_loading.rb
Ruby
mit
48
master
1,165
$simport.r "iek/scene_loading", "1.0.0", "Loading scene stub" class Scene_Loading < Scene_Base ## # @return [Void] def start super @ticks = 0 create_elements @done_loading = false @prep_thread = Thread.new { do_loading } @prep_thread.abort_on_exception = true end ### # @return [B...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/event_manager/event_manager.rb
Ruby
mit
48
master
269
$simport.r 'iek/event_manager', '1.0.0', 'Provides a Event import interface' do |h| h.depend 'iek/map_manager', '>= 1.0.0' end module EventManager def self.get_by_id(map_id, event_id) map = MapManager.get_by_id(map_id) map.events.fetch(event_id) end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/scheduler/scheduler.rb
Ruby
mit
48
master
2,580
# Scheduler, taken from Moon class Scheduler ### instance attribute attr_accessor :tasks attr_accessor :intervals ### # @param [String] str # @return [Float] duration in seconds ### def self.parse_duration(str) # - milliseconds # s - seconds # m - minutes # h - hours # d - days ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/scheduler/timeout.rb
Ruby
mit
48
master
238
class Timeout < SchedulerJob ### # Has this timeout reached its end? # @return [Boolean] ### def done? @time <= 0 end ### # When time reaches 0 or less ### def on_timeout trigger @active = false end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/scheduler/interval.rb
Ruby
mit
48
master
326
class Interval < SchedulerJob # Intervals are never done. # # @return [Boolean] def done? false end def reset @time = @duration end # When time reaches 0 or less def on_timeout trigger reset end # Force end the interval # Intervals do nothing on #finish def finish # en...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/scheduler/scheduler_job.rb
Ruby
mit
48
master
751
class SchedulerJob attr_reader :id attr_reader :time attr_reader :duration attr_accessor :active def initialize(duration, &block) @id = Random.random.base64(16) @time = @duration = duration @callback = block @active = true end def rate @time / @duration end def done? false ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/mixin/activatable.rb
Ruby
mit
48
master
450
$simport.r 'iek/activatable', '1.0.0', 'Interface for custom activatable objects' module Activatable attr_accessor :active def activate self.active = true self end def deactivate self.active = false self end def toggle(new_state = !active) old_state = active self.active = new_sta...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/mixin/callback.rb
Ruby
mit
48
master
1,210
$simport.r 'iek/callbacks', '1.0.0', 'A simple mixin module for adding Callbacks to an object' module Mixin module Callback attr_accessor :callback_log ## ~new-method # init_callbacks def init_callbacks @callbacks = {} end ## ~new-method # add_callback(Symbol symbol) { |*args, &bl...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/mixin/savable.rb
Ruby
mit
48
master
223
$simport.r 'iek/savable', '1.0.0', 'Interface for custom savable objects' module Mixin module Savable def write_save_contents(contents) # end def read_save_contents(contents) # end end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/meta_note/meta_note.rb
Ruby
mit
48
master
360
module IEK module Mixin module MetaNote attr_writer :meta # # @return [Hash<String, String>] def meta @meta || init_metanote end def init_metanote @meta = {} note.scan(/<meta\s(\S+)=(.+)>/i).each { |k, v| @meta[k] = v } @meta end p...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/sprite_bug_fix/sprite_bug_fix.rb
Ruby
mit
48
master
215
class Sprite alias :no_bugfix_initialize :initialize def initialize(*args, &block) no_bugfix_initialize(*args, &block) self.tone = Tone.new(0, 0, 0, 0) self.color = Color.new(0, 0, 0, 0) end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/async/async.rb
Ruby
mit
48
master
1,610
$simport.r 'iek/async', '1.0.0', 'Utitlity class for creating AsyncTasks' # Based on http://msdn.microsoft.com/en-us/library/vstudio/hh191443.aspx class AsyncTask # @return [Object] attr_accessor :object def initialize(*args, &block) @object = nil @thread = Thread.new do @object = block.call(*args...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/eventable/eventable.rb
Ruby
mit
48
master
483
$simport.r 'iek/eventable', '1.0.0', 'Basic callbacks mixin' module IEK module Eventable def init_eventable @__any_events__ = [] @__events__ = {} end def on_any(&block) @__any_events__ << block end def on(symbol, &block) (@__events__[symbol] ||= []).push(block) end ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/map_manager/map_manager.rb
Ruby
mit
48
master
378
$simport.r 'iek/map_manager', '1.0.0', 'Provides a Map management interface' module MapManager def self.load_file(filename) load_data(filename) end def self.load_map_by_id(map_id) load_file('Data/Map%03d.rvdata2' % map_id) end def self.get_by_id(map_id) @data[map_id] ||= load_map_by_id(map_id) ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/map_manager/vxa-game_map.rb
Ruby
mit
48
master
396
$simport.depend! 'iek/map_manager', '>= 1.0.0' class Game_Map ## # @overwrite # @param [Integer] map_id def setup(map_id) @map_id = map_id @map = MapManager.get_by_id(@map_id) @tileset_id = @map.tileset_id @display_x = 0 @display_y = 0 refresh_vehicles setup_events setup_scroll ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/eval_note/eval_note.rb
Ruby
mit
48
master
446
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # IEK (https://github.com/IceDragon200/IEK) # Eval Note # by IceDragon (https://github.com/IceDragon200) # Description # -- # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $simport.r 'eval_note', '1.0.0',...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/frame_scheduler/frame_scheduler.rb
Ruby
mit
48
master
4,171
$simport.r 'iek/frame_scheduler', '1.0.0', 'A frame based scehduler' do |h| h.depend 'iek/rgss3_ext/graphics', '>= 1.0.0' end class FrameScheduler class Job @@id = 0 attr_reader :id attr_reader :time attr_reader :duration attr_accessor :active def initialize(duration, &block) @id = @...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/frame_scheduler/schedule_host.rb
Ruby
mit
48
master
314
$simport.r 'iek/frame_scheduler/scheduler_host', '1.0.0', 'Scheduler Mixin' do |h| h.depend 'iek/frame_scheduler', '>= 1.0.0' end class FrameScheduler module SchedulerHost def init_scheduler @scheduler = FrameScheduler.new end def update_scheduler @scheduler.update end end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/micro_json/micro_json.rb
Ruby
mit
48
master
4,571
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # IEK (https://github.com/IceDragon200/IEK) # MicroJSON # by IceDragon (https://github.com/IceDragon200) # Description # This is a minimal implementation of JSON in pure ruby. # It worked for me, so your mileage may vary. # =-=-=-=-=-...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/micro_json/monkey.rb
Ruby
mit
48
master
594
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # IEK (https://github.com/IceDragon200/IEK) # MicroJSON - Monkey Patch # by IceDragon (https://github.com/IceDragon200) # Description # This is the core extension script for MicroJSON # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/sprite_icon/sprite_icon.rb
Ruby
mit
48
master
857
$simport.r 'iek/sprite_icon', '1.0.0', 'Generic Sprite for IconSet' # There are plenty of situations where you need a simple Sprite_Icon class class Sprite_Icon < Sprite_Base # @return [Integer] attr_reader :icon_index # @param [Viewport] viewport # @param [Integer] icon_index def initialize(viewport = nil,...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/content_bitmap/content_bitmap.rb
Ruby
mit
48
master
519
$simport.r 'iek/content_bitmap', '1.0.0', 'Bitmap subclass to differientiate Window contents.' class Window_Base class ContentBitmap < Bitmap end def dispose_contents contents.dispose unless contents.disposed? end def dispose dispose_contents super end def create_contents dispose_conte...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/tone.rb
Ruby
mit
48
master
2,398
$simport.r 'iek/rgss3_ext/tone', '1.0.0', 'Extends Tone Class' class Tone alias :initialize_0o4 :initialize # @overload initialize() # @overload initialize(tone) # @param [Tone] tone # @overload initialize(red, green, blue, gray) # @param [Integer] red # @param [Integer] green # @param [Integer...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/graphics.rb
Ruby
mit
48
master
486
$simport.r 'iek/rgss3_ext/graphics', '1.0.0', 'Extension of the RGSS3 Graphics module' module Graphics ### # @return [Rect] def self.rect Rect.new 0, 0, width, height end ### # @return [Float] def self.frame_delta 1.0 / Graphics.frame_rate end ### # @return [Integer] def self.sec_to_fra...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/load.rb
Ruby
mit
48
master
427
# core require 'iek/rgss3_ext/numeric' # classes require 'iek/rgss3_ext/bitmap' require 'iek/rgss3_ext/color' require 'iek/rgss3_ext/font' require 'iek/rgss3_ext/plane' require 'iek/rgss3_ext/rect' require 'iek/rgss3_ext/sprite' require 'iek/rgss3_ext/table' require 'iek/rgss3_ext/tilemap' require 'iek/rgss3_ext/tone' ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/window.rb
Ruby
mit
48
master
438
$simport.r 'iek/rgss3_ext/window', '1.0.0', 'Extends Window Class' class Window def to_rect Rect.new(x, y, width, height) end # Returns the "right" coordinate of the Rect # # @return [Integer] def x2 x + width end def x2=(x2) self.x = x2 - width end # Returns the "bottom" coordinate ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/bitmap.rb
Ruby
mit
48
master
2,851
$simport.r 'iek/rgss3_ext/bitmap', '1.0.0', 'Extends Bitmap Class' class Bitmap alias :org_initialize :initialize def initialize(*args) org_initialize(*args) yield self if block_given? end ## # @return [Rect] def to_rect Rect.new(0, 0, width, height) end ## # @param [Color] color def ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/rect.rb
Ruby
mit
48
master
2,337
$simport.r 'iek/rgss3_ext/rect', '1.0.0', 'Extends Rect Class' class Rect alias :w :width alias :h :height alias :w= :width= alias :h= :height= alias :initialize_0o4 :initialize # @overload initialize() # @overload initialize(rect) # @param [Rect] rect # @overload initialize(x, y, width, height) ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/table.rb
Ruby
mit
48
master
572
$simport.r 'iek/rgss3_ext/table', '1.0.0', 'Extends Table Class' class Table # @return [Rect] def to_rect Rect.new(0, 0, xsize, ysize) end def to_a result = [] if zsize > 1 zsize.times do |z| ysize.times do |y| xsize.times do |x| result << self[x, y, z] ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/numeric.rb
Ruby
mit
48
master
205
$simport.r 'iek/rgss3_ext/numeric', '1.0.0', 'Extends Numeric Class' class Numeric # Converts seconds to frames # # @return [Integer] def to_frames (self * Graphics.frame_rate).to_i end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/font.rb
Ruby
mit
48
master
1,593
$simport.r 'iek/rgss3_ext/font', '1.0.0', 'Extends Font Class' class Font alias :org_initialize :initialize def initialize(*args) org_initialize(*args) yield self if block_given? end ## # save { |font| do_stuff } # Caches the Font's state and restores the Font state on block exit # @return [se...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/sprite.rb
Ruby
mit
48
master
1,215
$simport.r 'iek/rgss3_ext/sprite', '1.0.0', 'Extends Sprite Class' class Sprite # @return [Rect] def to_rect Rect.new(x, y, width, height) end # @param [Integer] new_width def width=(new_width) self.src_rect.width = new_width end unless method_defined?(:width=) # @param [Integer] new_height d...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/plane.rb
Ruby
mit
48
master
456
$simport.r 'iek/rgss3_ext/plane', '1.0.0', 'Extends Plane Class' class Plane # Planes don't have an update method, this usually causes a few 'gotchas!' def update end ## # @return [Void] def dispose_bitmap self.bitmap.dispose end ## # @return [Void] def dispose_bitmap_safe dispose_bitmap ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/viewport.rb
Ruby
mit
48
master
880
$simport.r 'iek/rgss3_ext/viewport', '1.0.0', 'Extends Viewport Class' class Viewport alias :dispose_wo_flag :dispose def dispose dispose_wo_flag @disposed = true end def disposed? !!@disposed end # @return [Rect] def to_rect Rect.new(x, y, width, height) end ## # @return [Intege...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/rgss3_ext/color.rb
Ruby
mit
48
master
2,521
$simport.r 'iek/rgss3_ext/color', '1.0.0', 'Extends Color Class' class Color alias :initialize_0o4 :initialize # @overload initialize() # @overload initialize(color) # @param [Color] color # @overload initialize(red, green, blue, alpha) # @param [Integer] red # @param [Integer] green # @param [...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_switches/callbacks.rb
Ruby
mit
48
master
359
$simport.r 'iek/better_switches/callbacks', '1.0.0', 'Utilizes iek callbacks for better_switches' do |h| h.depend 'iek/better_switches', '>= 1.0.0' h.depend! 'iek/callbacks', '>= 1.0.0' end class Game_Switches include Mixin::Callback def on_change(id, org, now) $game_map.need_refresh = true try_callba...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/better_switches/better_switches.rb
Ruby
mit
48
master
1,229
$simport.r 'iek/better_switches', '1.0.0', 'Improves the functionality of default Game_Switches' class Game_Switches include Enumerable SIZE = 1024 ## # initialize def initialize @data = Array.new(SIZE, false) end ## # def each return to_enum(__method__) unless block_given? @data.each_...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/string.rb
Ruby
mit
48
master
353
class String def presence empty? ? nil : self end def blank? empty? ? true : false end def demodulize path = self.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end def indent(n) result = "" self.each_line do |line| result << (" " * n) + l...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/random.rb
Ruby
mit
48
master
979
class Random BINARY_DIGITS = %w[0 1] OCTAL_DIGITS = %w[0 1 2 3 4 5 6 7] HEX_DIGITS = %w[0 1 2 3 4 5 6 7 8 9 A B C D E F] BASE64_DIGITS = %w[A B C D E F G H I J K L M N O P Q R S T U V W X Y Z] + %w[a b c d e f g h i j k l m n o p q r s t u v w x y z] + %w[0 1 2 3 4 5 6 7 ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/numeric.rb
Ruby
mit
48
master
547
class Numeric ## # min(Numeric n) def min(n) n < self ? n : self end unless method_defined?(:min) ## # max(Numeric n) def max(n) n > self ? n : self end unless method_defined?(:max) ## # clamp(Numeric flr, Numeric cil) def clamp(flr, cil) (self < flr) ? flr : ((self > cil) ? cil : se...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/object.rb
Ruby
mit
48
master
534
class Object ## # Uses Marshal to create a perfect copy of the object # This does mean that, unmarshallable object will fail. # @return [Object] def marshal_clone Marshal.load(Marshal.dump(self)) end unless method_defined? :marshal_clone def presence self || nil end def blank? presence ?...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/hash.rb
Ruby
mit
48
master
284
class Hash def presence empty? ? nil : self end def blank? empty? ? true : false end def symbolize_keys each_with_object({}) { |a, hsh| hsh[a[0].to_sym] = a[1] } end def stringify_keys each_with_object({}) { |a, hsh| hsh[a[0].to_s] = a[1] } end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/core_ext/array.rb
Ruby
mit
48
master
310
class Array ## # @param [Array] array # @param [Symbol] method # Big Thanks to havenwood on Freenode #ruby for this one def zip_map(array, method) zip(array).map { |pair| pair.inject method } end def presence empty? ? nil : self end def blank? empty? ? true : false end end
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/window_bug_fix/window_carriage_return.rb
Ruby
mit
48
master
460
class Window_Base def process_character(c, text, pos) case c when "\r" # Return # and we should care about returns because? when "\n" # New line process_new_line(text, pos) when "\f" # New page process_new_page(text, pos) when "\e" # Control character process_escape...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/require_rgss/require_rgss.rb
Ruby
mit
48
master
790
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # IEK (https://github.com/IceDragon200/IEK) # Require RGSS # by IceDragon (https://github.com/IceDragon200) # version 1.0.0 # Description # -- # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= def top_bin...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/xpresso/rpg.rb
Ruby
mit
48
master
425
module RPG class BaseItem def kind_id IEK::ItemKinds::BASE end def to_mix_key [kind_id, id] end end class Item def kind_id IEK::ItemKinds::ITEM end end class Weapon def kind_id IEK::ItemKinds::WEAPON end end class Armor def kind_id IEK::It...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/xpresso/xpresso.rb
Ruby
mit
48
master
1,370
# The simpliest script for 'mixing' items module IEK class Xpresso class MixResultItem attr_accessor :kind attr_accessor :id attr_accessor :number def initialize(kind, id, number) @kind, @id, @number = kind, id, number end def item case @kind when 0 ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/surface_micro/surface_micro.rb
Ruby
mit
48
master
2,163
# $simport.r 'iek/surface_micro', '1.0.0', 'A smaller version of rm-macl\'s Surface' module Mixin module SurfaceMicro ## # @param [Integer] x # @param [Integer] y # @param [Integer] z # @optional # @return [self] def moveto(x, y, z=nil) self.x = x self.y = y self.z = z...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/tile_events/tile_events.rb
Ruby
mit
48
master
2,647
class Game_Character # update alias :iek_cmev_reg_update :update def update iek_cmev_reg_update if @cmevlast != (n = [self.x, self.y]) @cmevlast = n on_position_changed end end ## # on_position_changed def on_position_changed return unless @cmevlast x, y = @cmevlast $g...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/time_system/steptime.rb
Ruby
mit
48
master
601
$simport.r 'iek/time_system/steptime', '1.0.0', 'Uses a steps counter clock for TimeSystem' do |h| h.depend 'iek/time_system' end module IEK module TimeSystem class SteptimeClock < Clock attr_accessor :steps def init super @steps = 0 end def to_h super.merge(st...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/time_system/vxa-toning.rb
Ruby
mit
48
master
605
$simport.r 'iek/time_system/toning', '1.0.0', 'IEK TimeSystem Toning Implementation for VXA' do |h| h.depend 'iek/time_system' end module IEK module TimeSystem class Phase < Struct.new(:phase, :range, :tone) end @phases = [] @phases << Phase.new(:dawn, ( 0.hours)..( 6.hours), Tone.new( 17, -51,-...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/time_system/time_system.rb
Ruby
mit
48
master
1,168
$simport.r 'iek/time_system', '1.0.0', 'Basic TimeSystem' module IEK module TimeSystem class Clock attr_reader :value def initialize @value = 0 init end def init # end def value=(value) @value = value end def to_h { ...
github
Archeia/RMVXA-Script-Repository
https://github.com/Archeia/RMVXA-Script-Repository
IceDragon2000/lib/iek/time_system/gametime.rb
Ruby
mit
48
master
490
$simport.r 'iek/time_system/gametime', '1.0.0', 'Uses ingame clock for TimeSystem' do |h| h.depend 'iek/time_system' end module IEK module TimeSystem class GametimeClock < Clock attr_accessor :ticks def init super @ticks = 0 end def ticks_per_second 20 en...