home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 161 / MOBICLIC161.ISO / pc / DATA / DSS161 / DSS161_00 / DSS161_00.swf / scripts / dss161 / SaveManager.as
Text File  |  2014-01-15  |  823b  |  36 lines

  1. package dss161
  2. {
  3.    import dss161.engineaddons.gamesprotos.Actor;
  4.    
  5.    public class SaveManager extends Actor
  6.    {
  7.        
  8.       
  9.       public function SaveManager()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public function setValue(param1:String, param2:*) : void
  15.       {
  16.          if(!game.isFirstModuleToBeLaunchedByHost)
  17.          {
  18.             game.memo.setValue(param1,param2);
  19.          }
  20.       }
  21.       
  22.       public function getValue(param1:String, param2:* = null) : *
  23.       {
  24.          return !game.isFirstModuleToBeLaunchedByHost ? game.memo.getValue(param1,param2) : param2;
  25.       }
  26.       
  27.       public function clear(param1:String) : void
  28.       {
  29.          if(!game.isFirstModuleToBeLaunchedByHost)
  30.          {
  31.             game.memo.clear(param1);
  32.          }
  33.       }
  34.    }
  35. }
  36.