# Copyright (C) 2013-2015 all contributors # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) # used to serialize player state to the state file module DTAS::Serialize # :nodoc: def ivars_to_hash(ivars, rv = {}) ivars.each { |k| rv[k] = instance_variable_get("@#{k}") } rv end end