本文整理汇总了Python中IPlayer.IPlayer.init方法的典型用法代码示例。如果您正苦于以下问题:Python IPlayer.init方法的具体用法?Python IPlayer.init怎么用?Python IPlayer.init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPlayer.IPlayer
的用法示例。
在下文中一共展示了IPlayer.init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
#
obj.name = u'Pirate'
obj.login = '*'
#
obj.pirateFame = 0
示例2: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
#
obj.name = u'Pirate'
obj.login = '*'
#
obj.pirateFame = 0
obj.techLevel = 3
# grant all TL1 ship techs except for colony module(s)
for techID in Rules.techs:
tech = Rules.techs[techID]
if tech.level == 1 and (tech.isShipEquip or tech.isShipHull) and not tech.unpackStruct:
obj.techs[techID] = Rules.techMaxImprovement
示例3: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
obj.pirateFame = 0
示例4: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
#
obj.name = u'Rebels'
obj.login = '*'
示例5: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
#
obj.name = u'E.D.E.N.'
obj.race = "e"
obj.login = '*'
示例6: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
obj.techLevel = 3
obj.race = "p"
obj.pirateFame = 0
示例7: init
# 需要导入模块: from IPlayer import IPlayer [as 别名]
# 或者: from IPlayer.IPlayer import init [as 别名]
def init(self, obj):
IPlayer.init(self, obj)
#
obj.name = u"NATURE"
obj.login = "*NATURE*"