Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To change this license header, choose License Headers in Project Properties.
- # To change this template file, choose Tools | Templates
- # and open the template in the editor.
- __author__="marcosilva"
- __date__ ="$Aug 8, 2014 1:34:41 AM$"
- #if __name__ == "__main__": {"id":27,"r":77,"n":14,"f":"Joe","l":"Cole"}
- # print "Hello World"
- class Database():
- def __init__(self):
- self.db={}
- def add(self,player):
- self.db[player.get_assetid()] = player
- def __getitem__(self,assetid):
- return self.db[assetid]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement