mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Rubocop autocorrect frozen string literal cop
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
gem "rake"
|
gem "rake"
|
||||||
gem "opengl-bindings", require: "opengl"
|
gem "opengl-bindings", require: "opengl"
|
||||||
|
|||||||
1
Rakefile
1
Rakefile
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require "json"
|
require "json"
|
||||||
require "tmpdir"
|
require "tmpdir"
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
begin
|
begin
|
||||||
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
origin = entity.position
|
origin = entity.position
|
||||||
|
|
||||||
on.entity_moved do |event|
|
on.entity_moved do |event|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
component(:building)
|
component(:building)
|
||||||
|
|
||||||
on.create do |event|
|
on.create do |event|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
component(:vehicle) # Generic, Weapon
|
component(:vehicle) # Generic, Weapon
|
||||||
|
|
||||||
on.button_down(:interact) do |event|
|
on.button_down(:interact) do |event|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
component(:building)
|
component(:building)
|
||||||
|
|
||||||
on.create do |event|
|
on.create do |event|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
IMICFPS_SERVER_MODE = true
|
IMICFPS_SERVER_MODE = true
|
||||||
require_relative "i-mic-fps"
|
require_relative "i-mic-fps"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require "fiddle"
|
require "fiddle"
|
||||||
require "yaml"
|
require "yaml"
|
||||||
require "json"
|
require "json"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class CameraController
|
class CameraController
|
||||||
include CommonMethods
|
include CommonMethods
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
File.expand_path("./../../assets", __FILE__)
|
File.expand_path("./../../assets", __FILE__)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Component
|
class Component
|
||||||
COMPONENTS = {}
|
COMPONENTS = {}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Components
|
class Components
|
||||||
class Building < Component
|
class Building < Component
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
GAME_ROOT_PATH = File.expand_path("..", File.dirname(__FILE__))
|
GAME_ROOT_PATH = File.expand_path("..", File.dirname(__FILE__))
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Crosshair
|
class Crosshair
|
||||||
include CommonMethods
|
include CommonMethods
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Demo
|
class Demo
|
||||||
def initialize(camera:, player:, demo:, mode:)
|
def initialize(camera:, player:, demo:, mode:)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class EventHandler
|
class EventHandler
|
||||||
class Event
|
class Event
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class EventHandler
|
class EventHandler
|
||||||
@@handlers = {}
|
@@handlers = {}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class EventHandler
|
class EventHandler
|
||||||
class EntityLifeCycle < EventHandler
|
class EntityLifeCycle < EventHandler
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class EventHandler
|
class EventHandler
|
||||||
class EntityMoved < EventHandler
|
class EntityMoved < EventHandler
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class EventHandler
|
class EventHandler
|
||||||
class Input < EventHandler
|
class Input < EventHandler
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
case OpenGL.get_platform
|
case OpenGL.get_platform
|
||||||
when :OPENGL_PLATFORM_WINDOWS
|
when :OPENGL_PLATFORM_WINDOWS
|
||||||
OpenGL.load_lib("opengl32.dll", "C:/Windows/System32")
|
OpenGL.load_lib("opengl32.dll", "C:/Windows/System32")
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
if RUBY_VERSION < "2.5.0"
|
if RUBY_VERSION < "2.5.0"
|
||||||
puts "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
|
puts "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
|
||||||
puts "|NOTICE| Ruby is #{RUBY_VERSION} not 2.5.0+..............................|Notice|"
|
puts "|NOTICE| Ruby is #{RUBY_VERSION} not 2.5.0+..............................|Notice|"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Editor < Entity
|
class Editor < Entity
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Player < Entity
|
class Player < Entity
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Skydome < Entity
|
class Skydome < Entity
|
||||||
def setup
|
def setup
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Terrain < Entity
|
class Terrain < Entity
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
def initialize(position:, image:, interval: 1_500, time_to_live: 3_000, max_particles: 500)
|
def initialize(position:, image:, interval: 1_500, time_to_live: 3_000, max_particles: 500)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
def initialize(player)
|
def initialize(player)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class Widget
|
class Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class AmmoWidget < HUD::Widget
|
class AmmoWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class ChatHistoryWidget < HUD::Widget
|
class ChatHistoryWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class CrosshairWidget < HUD::Widget
|
class CrosshairWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class HealthWidget < HUD::Widget
|
class HealthWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class RadarWidget < HUD::Widget
|
class RadarWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class ScoreBoardWidget < HUD::Widget
|
class ScoreBoardWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class HUD
|
class HUD
|
||||||
class SquadWidget < HUD::Widget
|
class SquadWidget < HUD::Widget
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class CollisionManager
|
class CollisionManager
|
||||||
attr_reader :map, :collisions
|
attr_reader :map, :collisions
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module EntityManager # Get included into GameState context
|
module EntityManager # Get included into GameState context
|
||||||
def add_entity(entity)
|
def add_entity(entity)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class InputMapper
|
class InputMapper
|
||||||
@@keymap = {}
|
@@keymap = {}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module LightManager
|
module LightManager
|
||||||
MAX_LIGHTS = OpenGL::GL_MAX_LIGHTS
|
MAX_LIGHTS = OpenGL::GL_MAX_LIGHTS
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class PhysicsManager
|
class PhysicsManager
|
||||||
def initialize(collision_manager:)
|
def initialize(collision_manager:)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module SoundManager
|
module SoundManager
|
||||||
extend CyberarmEngine::Common
|
extend CyberarmEngine::Common
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Manifest
|
class Manifest
|
||||||
attr_reader :name, :model, :collision, :collision_mesh, :collision_resolution, :physics, :scripts, :uses
|
attr_reader :name, :model, :collision, :collision_mesh, :collision_resolution, :physics, :scripts, :uses
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Map
|
class Map
|
||||||
include EntityManager
|
include EntityManager
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class MapParser
|
class MapParser
|
||||||
attr_reader :metadata, :terrain, :skydome, :lights, :entities, :spawnpoints
|
attr_reader :metadata, :terrain, :skydome, :lights, :entities, :spawnpoints
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
MULTICAST_ADDRESS = "224.0.0.1"
|
MULTICAST_ADDRESS = "224.0.0.1"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class Channel
|
class Channel
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class Connection
|
class Connection
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class Packet
|
class Packet
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
module PacketHandler
|
module PacketHandler
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class ControlPacket
|
class ControlPacket
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class RawPacket
|
class RawPacket
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class ReliablePacket
|
class ReliablePacket
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class Peer
|
class Peer
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
module Protocol
|
module Protocol
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module CyberarmEngine
|
module CyberarmEngine
|
||||||
module Networking
|
module Networking
|
||||||
class Server
|
class Server
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class Connection
|
class Connection
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class Director
|
class Director
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
module Events
|
module Events
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class PacketHandler
|
class PacketHandler
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class SnapshotPacket < CyberarmEngine::Networking::Packet
|
class SnapshotPacket < CyberarmEngine::Networking::Packet
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class ReadBuffer
|
class ReadBuffer
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Networking
|
module Networking
|
||||||
class Server < CyberarmEngine::Networking::Server
|
class Server < CyberarmEngine::Networking::Server
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Overlay
|
class Overlay
|
||||||
include CommonMethods
|
include CommonMethods
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Publisher
|
class Publisher
|
||||||
def self.subscribe(subscription)
|
def self.subscribe(subscription)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Scene
|
class Scene
|
||||||
attr_reader :camera, :entities, :lights
|
attr_reader :camera, :entities, :lights
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class TurnTableScene < Scene
|
class TurnTableScene < Scene
|
||||||
def setup
|
def setup
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Scripting
|
module Scripting
|
||||||
def on
|
def on
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Scripting
|
module Scripting
|
||||||
class SandBox
|
class SandBox
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
module Scripting
|
module Scripting
|
||||||
CONSTANTS_WHITELIST = [
|
CONSTANTS_WHITELIST = [
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class SoundEffect
|
class SoundEffect
|
||||||
attr_reader :sound, :options
|
attr_reader :sound, :options
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class SoundEffect
|
class SoundEffect
|
||||||
class FadeIn < SoundEffect
|
class FadeIn < SoundEffect
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class SoundEffect
|
class SoundEffect
|
||||||
class FadeInAndOut < FadeIn
|
class FadeInAndOut < FadeIn
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class SoundEffect
|
class SoundEffect
|
||||||
class FadeOut < FadeIn
|
class FadeOut < FadeIn
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class SoundEffect
|
class SoundEffect
|
||||||
class ShieldRegen < SoundEffect
|
class ShieldRegen < SoundEffect
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class GameState < CyberarmEngine::GameState
|
class GameState < CyberarmEngine::GameState
|
||||||
include CommonMethods
|
include CommonMethods
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Boot < GameState
|
class Boot < GameState
|
||||||
def setup
|
def setup
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Close < GameState
|
class Close < GameState
|
||||||
def setup
|
def setup
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Game < GameState
|
class Game < GameState
|
||||||
attr_reader :map
|
attr_reader :map
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class LoadingState < Menu
|
class LoadingState < Menu
|
||||||
def setup
|
def setup
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Subscription
|
class Subscription
|
||||||
attr_reader :entity, :event, :args, :block
|
attr_reader :entity, :event, :args, :block
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require_relative "asset_viewer/lib/main_menu"
|
require_relative "asset_viewer/lib/main_menu"
|
||||||
require_relative "asset_viewer/lib/turn_table"
|
require_relative "asset_viewer/lib/turn_table"
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class AssetViewerTool
|
class AssetViewerTool
|
||||||
class MainMenu < Menu
|
class MainMenu < Menu
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class AssetViewerTool
|
class AssetViewerTool
|
||||||
class TurnTable < CyberarmEngine::GuiState
|
class TurnTable < CyberarmEngine::GuiState
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require_relative "map_editor/lib/main_menu"
|
require_relative "map_editor/lib/main_menu"
|
||||||
require_relative "map_editor/lib/editor"
|
require_relative "map_editor/lib/editor"
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class MapEditorTool
|
class MapEditorTool
|
||||||
class Editor < CyberarmEngine::GuiState
|
class Editor < CyberarmEngine::GuiState
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class MapEditorTool
|
class MapEditorTool
|
||||||
class MainMenu < Menu
|
class MainMenu < Menu
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class AABBTree
|
class AABBTree
|
||||||
class AABBNode
|
class AABBNode
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class AABBTree
|
class AABBTree
|
||||||
include IMICFPS::AABBTreeDebug
|
include IMICFPS::AABBTreeDebug
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
# Gets included into AABBTree
|
# Gets included into AABBTree
|
||||||
module AABBTreeDebug
|
module AABBTreeDebug
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
module Style
|
module Style
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class ConnectCommand < Command
|
class ConnectCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class DebugCommand < Command
|
class DebugCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class DisconnectCommand < Command
|
class DisconnectCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class FPSCommand < Command
|
class FPSCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class HelpCommand < Command
|
class HelpCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class ReloadShaderCommand < Command
|
class ReloadShaderCommand < Command
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class IMICFPS
|
class IMICFPS
|
||||||
class Commands
|
class Commands
|
||||||
class RendererInfoCommand < Command
|
class RendererInfoCommand < Command
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user