Data_UserZoneInfo.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * Description of UserZoneInfoModel
  5. * 玩家分析信息数据结构,存储了玩家在游戏中曾经玩过的分区信息,
  6. * 玩家登陆成功后,首先取分区信息,服务器返回所有分区列表,并把玩家曾经玩过的分区信息
  7. * 提取出来传给玩家,包括上次玩过的分区,以及在各个分区中的等级信息。
  8. * @author gwang email:wanggangzero@qq.com
  9. * @version 1.0
  10. * @copyright © 2015-1-28, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  11. * @History
  12. * 2015年1月28日 暂定玩家玩过的分区集合为 分区id:等级的关联数组,若是后期有要求提供
  13. * 更多信息(等级以外)再行修改。
  14. */
  15. class Data_UserZoneInfo
  16. {
  17. /**
  18. * 玩家玩过的分区集合(分区ID:等级,昵称)
  19. * @var array (ZoneInfoModel)
  20. */
  21. public $playedZones;
  22. /**
  23. * 玩家上次登录的分区信息
  24. * @var Ins_ZoneInfo
  25. */
  26. public $lastZone;
  27. public function __construct()
  28. {
  29. $this->playedZones = ObjectInit();
  30. }
  31. }