#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias_method :icarus_maplinks_initialize, :initialize
def initialize
# The Usual
icarus_maplinks_initialize
# Create size array for tables
# You can create multiple maplinked planes using the tables? z-axis
size = [4, 4, 1]
# Create map layout table for maplinks
@maps = Object_Table.new(*size)
@maps[0,0,0], @maps[1,0,0], @maps[2,0,0], @maps[3,0,0] = 1, 2, 3, 4
@maps[0,1,0], @maps[1,1,0], @maps[2,1,0], @maps[3,1,0] = 5, 6, 6, 7
@maps[0,2,0], @maps[1,2,0], @maps[2,2,0], @maps[3,2,0] = 8, 6, 6, 9
@maps[0,3,0], @maps[1,3,0], @maps[2,3,0], @maps[3,3,0] = 10, 10, 10, 10
@maps.negative_read = false
# Create map size arrays
sm, long, large = [20, 15], [80, 15], [40, 30]
# Define the size of each map
@sizes = Object_Table.new(*size)
@sizes[0,0,0], @sizes[1,0,0], @sizes[2,0,0], @sizes[3,0,0] = sm, sm, sm, sm
@sizes[0,1,0], @sizes[1,1,0], @sizes[3,1,0] = sm, large, sm
@sizes[0,2,0], @sizes[3,2,0] = sm, sm
@sizes[0,3,0] = long
# Disable access to curtain maps by direction
# Down = 1, Left = 2, Right = 4, Up = 8, All = 15
# ie. Down + Right = 1 + 4 = 5
@disabled = []
# @disabled[map_id] = value
@disabled[1] = 4
# Enable looped maplinked planes by direction
# Down = 1, Left = 2, Right = 4, Up = 8, All = 15
# ie. Left + Right = 2 + 4 = 6
@looped = []
# @looped[plane z] = value
@looped[0] = 15
# Fade between maps
@fade = true
# Walk off map before transferring
@leave_map = true
end
# Create size array for tables [xmax, ymax, zmax]
# You can index multiple maplinks regions on the tables? z-axis
size = [4, 4, 1]
# Create map layout table for maplinks
@maps = Object_Table.new(*size)
@maps[0,0,0], @maps[1,0,0], @maps[2,0,0], @maps[3,0,0] = 1, 2, 3, 4
@maps[0,1,0], @maps[1,1,0], @maps[2,1,0], @maps[3,1,0] = 5, 6, 6, 7
@maps[0,2,0], @maps[1,2,0], @maps[2,2,0], @maps[3,2,0] = 8, 6, 6, 9
@maps[0,3,0], @maps[1,3,0], @maps[2,3,0], @maps[3,3,0] = 10, 10, 10, 10
@maps.negative_read = false
# Create map size arrays
sm, long, large = [20, 15], [80, 15], [40, 30]
# Define the size of each map
@sizes = Object_Table.new(*size)
@sizes[0,0,0], @sizes[1,0,0], @sizes[2,0,0], @sizes[3,0,0] = sm, sm, sm, sm
@sizes[0,1,0], @sizes[1,1,0], @sizes[3,1,0] = sm, large, sm
@sizes[0,2,0], @sizes[3,2,0] = sm, sm
@sizes[0,3,0] = long
# Disable access to curtain maps by direction
# Down = 1, Left = 2, Right = 4, Up = 8, All = 15
# ie. Down + Right = 1 + 4 = 5
@disabled = []
# @disabled[map_id] = value
@disabled[1] = 4
# Enable looped maplinked planes by direction
# Down = 1, Left = 2, Right = 4, Up = 8, All = 15
# ie. Left + Right = 2 + 4 = 6
@looped = []
# @looped[plane z] = value
@looped[0] = 15
# Fade between maps
@fade = true
# Walk off map before transferring
@leave_map = true