This handler is used for interacting with remote storage and user generated content.
Inheritance: ClientMsgHandler
Esempio n. 1
0
        private void OnUGCInfo(SteamCloud.UGCDetailsCallback callback)
        {
            JobAction job;

            if (!JobManager.TryRemoveJob(callback.JobID, out job) || !job.IsCommand)
            {
                return;
            }

            var request = job.CommandRequest;

            if (callback.Result != EResult.OK)
            {
                CommandHandler.ReplyToCommand(request.Command, "Unable to request UGC info: {0}", callback.Result);

                return;
            }

            CommandHandler.ReplyToCommand(request.Command, "Creator: {0}{1}{2}, App: {3}{4}{5}, File: {6}{7}{8}, Size: {9}{10}{11} -{12} {13}",
                Colors.BLUE, callback.Creator.Render(true), Colors.NORMAL,
                Colors.BLUE, callback.AppID, Colors.NORMAL,
                Colors.BLUE, callback.FileName, Colors.NORMAL,
                Colors.BLUE, GetByteSizeString(callback.FileSize), Colors.NORMAL,
                Colors.DARKBLUE, callback.URL
            );
        }
Esempio n. 2
0
        public UGCCommand()
        {
            Trigger = "ugc";
            IsSteamCommand = true;

            Cloud = Steam.Instance.Client.GetHandler<SteamCloud>();
        }
Esempio n. 3
0
        public UGCCommand()
        {
            Trigger = "ugc";
            IsSteamCommand = true;

            Cloud = Steam.Instance.Client.GetHandler<SteamCloud>();

            Steam.Instance.CallbackManager.Subscribe<SteamCloud.UGCDetailsCallback>(OnUGCInfo);
        }