Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/g/u/guns-game-HEAD/modules/server/battle/actions/nick.py   guns-game(Download)
def process(ediparts, p):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	# TODO: Validation!

src/g/u/guns-game-HEAD/modules/server/battle/actions/token.py   guns-game(Download)
def process(ediparts, addr):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	# TODO: Validation!

src/g/u/guns-game-HEAD/modules/server/battle/actions/fire.py   guns-game(Download)
def process(ediparts, p):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	desired_shot = [int(x) for x in ediparts[1]]

src/g/u/guns-game-HEAD/modules/server/battle/actions/__init__.py   guns-game(Download)
 
	if (not p) and (ediparts[0] != 'UST'):
		raise edicomm.EDIException(100, 'Please re-authenticate!')
 
	if ediparts[0] == 'UST':

src/g/u/guns-game-HEAD/modules/server/battle/actions/zoom.py   guns-game(Download)
def process(ediparts, p):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	p.zoom = float(ediparts[1])

src/g/u/guns-game-HEAD/modules/server/battle/actions/viewport.py   guns-game(Download)
def process(ediparts, p):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	p.viewport = [int(x) for x in ediparts[1]]

src/g/u/guns-game-HEAD/modules/server/battle/actions/velocity.py   guns-game(Download)
def process(ediparts, p):
	if len(ediparts) != 2:
		raise edicomm.EDIException(99, 'Wrong argument count!')
 
	p.velocity = [int(x) for x in ediparts[1]]