screpl.apps.chatreader module

defines ChatReaderApp

class screpl.apps.chatreader. ChatReaderApp [source]

Bases: screpl.core.application.Application

Receives user’s chat and write to specific offset

Text UI:

ChatReader
Your input: '{Content}'

[ OK (CTRL+Y) ]    [ CANCEL (CTRL+N) ]

Application usage to store text from user:

my_database = Db(220)
ChatReaderApp.set_return_epd(EPD(my_database))
app_manager.start_application(ChatReaderApp)

# Then, ChatReaderApp runs, and it stores text to my_database

Application Fields

Application Methods

index

methods

0

screpl.apps.chatreader.ChatReaderApp.loop()

1

screpl.apps.chatreader.ChatReaderApp.on_chat()

2

screpl.apps.chatreader.ChatReaderApp.on_destruct()

3

screpl.apps.chatreader.ChatReaderApp.on_init()

4

screpl.core.application.Application.on_resume()

5

screpl.apps.chatreader.ChatReaderApp.print()

loop ( self )

AppMethodN (index=0)

on_chat ( self , address )

AppMethodN (index=1) - Receives chat to store to temporary storage

on_destruct ( self )

AppMethodN (index=2)

on_init ( self )

AppMethodN (index=3) - Initialize application

It makes writer to focus return address

print ( self , writer )

AppMethodN (index=5)

static set_return_address ( addr ) [source]

Set target address to store text from chat

Call this before start_application()

Parameters

addr (int, ConstExpr , or EUDVariable ) – target address

static set_return_epd ( epd ) [source]

Set epd value of target address to store text from chat

Call this before start_application()

Parameters

epd (int, ConstExpr , or EUDVariable ) – EPD value of target address