Exemplo n.º 1
0
        public override bool OnCheck()
        {
            Value v = GetStory.GetValue(ValueName);

            if (v != null)
            {
                return(v.Compare(Value, Compare));
            }
            return(false);
        }
Exemplo n.º 2
0
 protected override EnumResult OnStart()
 {
     if (Scope == ValueScope.Mission)
     {
         return(GetMission.AddValue(ValueName, ValueType, Value).ToEnumResult());
     }
     else if (Scope == ValueScope.Story)
     {
         return(GetStory.AddValue(ValueName, ValueType, Value).ToEnumResult());
     }
     return(EnumResult.Failed);
 }
Exemplo n.º 3
0
 public string GetStoryPic(int UserID)
 {
     if (SecureAuthentication != null)
     {
         int Output = CheckLoginReturnUserId(SecureAuthentication).ValueFromSQL;
         if (Output > 0)
         {
             GetStory proc = new GetStory();
             return("{\"StoryList\" : " + Serialize(proc.Get_StoryPic(UserID)) + "}");
         }
         else
         {
             return(Serialize(new AuthResponse(0, Output == -1 ? "Authentication is NULL" : "Invalid Authentication")));
         }
     }
     return(Serialize(new AuthResponse(0, "Authentication information not provided.")));
 }