public HttpResponseMessage GetNextStoryFlowObject()
        {
            string       steamId           = User.Identity.Name;
            StringAndInt currentElement    = PlayerDataSql.NextStoryObject(steamId);
            string       serializedElement = JsonConvert.SerializeObject(currentElement);
            var          response          = new HttpResponseMessage(HttpStatusCode.OK);

            response.Content = new StringContent(serializedElement);
            return(response);
        }
Example #2
0
    public static bool BattleCanBeStarted(string steamId, int battleSceneId)
    {
        StringAndInt nextObject = PlayerDataSql.NextStoryObject(steamId);

        return(nextObject.StrValue == "battle" && nextObject.IntValue == battleSceneId);
    }