hxp
3 天以前 388823edfe6308cba6f76ca6dc4f20022c5cb2be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: GBK -*-
# tagRoleSkill.txt¶ÔÓ¦µÄÿÐÐÅäÖÃÏîÄÚÈÝ
# author: ifo
# Date: 2011.10.26
# history:  2011.10.26     Created
 
import AccountInfo
 
class tagRoleSkillParam:
    def __init__(self, params,comment):
        self.comment = comment.replace( "\n", "\t" ).split( "\t" )
        self.params = params
        self.AccID = params[0]
        accountInfo = AccountInfo.tagRoleSkill()
        for i in range(1,len(self.params)-1): 
            paramList = eval(self.params[i])
            for j in range(len(paramList)):
                paramList[j] = type(getattr(accountInfo,self.comment[i]))(paramList[j])
                
            setattr(self,self.comment[i],paramList)
 
    
    def __str__(self):
        tagDSAccountStr = ""
        for i in range(len(self.params)-1):
            tagDSAccountStr += " %s : %s %s \n"%(self.comment[i],getattr(self,self.comment[i]),type(getattr(self,self.comment[i])))
        return tagDSAccountStr