Ejemplo n.º 1
0
    public void SetLoungeSearchRequestFromPrefs()
    {
        int          order   = 1;
        LOUNGE_LABEL @int    = (LOUNGE_LABEL)PlayerPrefs.GetInt("LOUNGE_SEARCH_LABEL_KEY", 0);
        string       @string = PlayerPrefs.GetString("LOUNGE_SEARCH_NAME_KEY", string.Empty);

        searchRequest = new LoungeSearchSettings.SearchRequestParam(order, @int, @string);
    }
Ejemplo n.º 2
0
    public void SetLoungeCreateRequestFromPrefs()
    {
        int @int     = PlayerPrefs.GetInt("LOUNGE_CREATE_STAMP_KEY", 1);
        int int2     = PlayerPrefs.GetInt("LOUNGE_CREATE_LEVEL_MIN_KEY", 15);
        int maxLevel = Singleton <UserLevelTable> .I.GetMaxLevel();

        maxLevel = PlayerPrefs.GetInt("LOUNGE_CREATE_LEVEL_MAX_KEY", maxLevel);
        int          int3    = PlayerPrefs.GetInt("LOUNGE_CREATE_CAPACITY_KEY", 8);
        LOUNGE_LABEL int4    = (LOUNGE_LABEL)PlayerPrefs.GetInt("LOUNGE_CREATE_LABEL_KEY", 0);
        bool         isLock  = PlayerPrefs.GetInt("LOUNGE_CREATE_LOCK_KEY", 0) != 0;
        string       @string = PlayerPrefs.GetString("LOUNGE_CREATE_NAME_KEY", string.Empty);

        createRequest = new LoungeConditionSettings.CreateRequestParam(@int, int2, maxLevel, int3, int4, isLock, @string);
    }
 protected override void SetParamLabel(LOUNGE_LABEL label)
 {
     searchRequest.SetLabel(label);
 }
 public void SetLabel(LOUNGE_LABEL label)
 {
     this.label = label;
 }
 public SearchRequestParam(int order, LOUNGE_LABEL label, string loungeName)
 {
     this.order      = order;
     this.label      = label;
     this.loungeName = loungeName;
 }
 public CreateRequestParam(int stampId, int minLevel, int maxLevel, int capacity, LOUNGE_LABEL label, bool isLock, string name)
 {
     this.stampId  = stampId;
     this.minLevel = minLevel;
     this.maxLevel = maxLevel;
     this.capacity = capacity;
     this.label    = label;
     this.isLock   = isLock;
     loungeName    = name;
 }
 protected virtual void SetParamLabel(LOUNGE_LABEL label)
 {
     createRequest.SetLabel(label);
 }