Example #1
0
        private Result GetSaveDataInfo(out SaveDataInfo info, SaveDataSpaceId spaceId, ref SaveDataAttribute attribute)
        {
            info = default;

            SaveDataIndexerReader reader = default;

            try
            {
                Result rc = FsServer.SaveDataIndexerManager.GetSaveDataIndexer(out reader, spaceId);
                if (rc.IsFailure())
                {
                    return(rc);
                }

                rc = reader.Indexer.Get(out SaveDataIndexerValue value, ref attribute);
                if (rc.IsFailure())
                {
                    return(rc);
                }

                SaveDataIndexer.GetSaveDataInfo(out info, ref attribute, ref value);
                return(Result.Success);
            }
            finally
            {
                reader.Dispose();
            }
        }
Example #2
0
 public SaveDataIndexerLiteInfoReader(ref SaveDataAttribute key, ref SaveDataIndexerValue value)
 {
     SaveDataIndexer.GetSaveDataInfo(out _info, ref key, ref value);
 }