class DFL

Overview

The main class for working with .dfl files

Included Modules

Defined in:

D_File/dfl.cr
D_File/dfl/graphic.cr
D_File/dfl/head.cr
D_File/dfl/palette.cr
D_File/dfl/palgraphic.cr
D_File/dfl/sound.cr
write.cr

Constructors

Instance Method Summary

Instance methods inherited from module WritingMethods::DFL

write(filename : String | Path)
write(io : IO)
write

Constructor Detail

def self.read(filename : String | Path) : DFL #

Reads in a dfl given the filename

dfl = DFL.read("Path/To/MyDFL.dfl")

[View source]
def self.read(io : IO) : DFL #

Reads in a dfl given the io


[View source]

Instance Method Detail

def add(head : Head) #

Adds a DFL::Head to the dfl


[View source]
def empty : Array(Head) #

The array of heads with empty data type


[View source]
def empty=(empty : Array(Head)) #

The array of heads with empty data type


[View source]
def graphics : Array(Head) #

The array of heads with graphic data type


[View source]
def graphics=(graphics : Array(Head)) #

The array of heads with graphic data type


[View source]
def palette : Head #

The universal palette for palette graphics


[View source]
def palette=(palette : Head) #

The universal palette for palette graphics


[View source]
def palgraphics : Array(Head) #

The array of heads with palgraphic data type


[View source]
def palgraphics=(palgraphics : Array(Head)) #

The array of heads with palgraphic data type


[View source]
def portions : UInt32 #

The number of portions in the dfl


[View source]
def portions=(portions : UInt32) #

The number of portions in the dfl


[View source]
def sounds : Array(Head) #

The array of heads with sound data type


[View source]
def sounds=(sounds : Array(Head)) #

The array of heads with sound data type


[View source]