Advertisement
Guest User

Untitled

a guest
Aug 7th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # To change this license header, choose License Headers in Project Properties.
  2. # To change this template file, choose Tools | Templates
  3. # and open the template in the editor.
  4.  
  5. __author__="marcosilva"
  6. __date__ ="$Aug 8, 2014 1:34:41 AM$"
  7.  
  8. #if __name__ == "__main__": {"id":27,"r":77,"n":14,"f":"Joe","l":"Cole"}
  9. # print "Hello World"
  10. class Database():
  11.  
  12. def __init__(self):
  13. self.db={}
  14.  
  15. def add(self,player):
  16. self.db[player.get_assetid()] = player
  17.  
  18. def __getitem__(self,assetid):
  19. return self.db[assetid]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement