示例#1
0
文件: handler.py 项目: hub-sdaft/bot
 def startCompound( self ):
     print( "{}TAG_Compound{}: {{".format( self._is, _tns( self._n ) ) )
     self.setIndent( self._i + 1 )
示例#2
0
文件: handler.py 项目: hub-sdaft/bot
 def startIntArray( self, length ):
     print( "{}TAG_Int_Array{}: [{:d} int{}]".format( self._is, _tns( self._n ), length, "s" if length != 1 else "" ) )
示例#3
0
文件: handler.py 项目: hub-sdaft/bot
 def string( self, value ):
     print( "{}TAG_String{}: {:s}".format( self._is, _tns( self._n ), value ) )
示例#4
0
文件: handler.py 项目: hub-sdaft/bot
 def startList( self, tagType, length ):
     print( "{}TAG_List{}: {} [".format( self._is, _tns( self._n ), _tls( length, tagType ) ) )
     self._n = None
     self.setIndent( self._i + 1 )
示例#5
0
文件: handler.py 项目: hub-sdaft/bot
 def double( self, value ):
     print( "{}TAG_Double{}: {:g}".format( self._is, _tns( self._n ), value ) )
示例#6
0
文件: handler.py 项目: hub-sdaft/bot
 def startByteArray( self, length ):
     print( "{}TAG_Byte_Array{}: [{:d} byte{}]".format( self._is, _tns( self._n ), length, "s" if length != 1 else "" ) )
示例#7
0
文件: handler.py 项目: hub-sdaft/bot
 def float( self, value ):
     print( "{}TAG_Float{}: {:g}".format( self._is, _tns( self._n ), value ) )
示例#8
0
文件: handler.py 项目: hub-sdaft/bot
 def long( self, value ):
     print( "{}TAG_Long{}: {:d}".format( self._is, _tns( self._n ), value ) )
示例#9
0
文件: handler.py 项目: hub-sdaft/bot
 def int( self, value ):
     print( "{}TAG_Int{}: {:d}".format( self._is, _tns( self._n ), value ) )
示例#10
0
文件: handler.py 项目: hub-sdaft/bot
 def short( self, value ):
     print( "{}TAG_Short{}: {:d}".format( self._is, _tns( self._n ), value ) )
示例#11
0
文件: handler.py 项目: hub-sdaft/bot
 def byte( self, value ):
     print( "{}TAG_Byte{}: {:d}".format( self._is, _tns( self._n ), value ) )