events.resource module

Provides a way to create resource (.res) files using custom events.

class events.resource.ResourceFile(filepath, *events)[source]

Bases: collections.OrderedDict

Class used to write and load custom event .res files.

__init__(filepath, *events)[source]

Called on instatiation.

load_events()[source]

Load events from the .res file.

write()[source]

Write the .res file to disk.

filepath

Return the path to the .res file.

fullpath

Return the full path of the .res file.