Skip to content

Handle k_EMsgDestJobFailed #171

Description

@Netshroud

Proof of concept:

        class JobFailureHandler : ClientMsgHandler
        {
            public override void HandleMsg(IPacketMsg packetMsg)
            {
                if (packetMsg.MsgType != EMsg.DestJobFailed)
                {
                    return;
                }

                var failure = new ClientMsg<MsgClientJustStrings>(packetMsg);
                var callback = new DestinationJobFailedCallback(failure.TargetJobID);
                steamClient.PostCallback(callback);

                Console.WriteLine("Job failed!");
            }
        }

        public class DestinationJobFailedCallback : CallbackMsg
        {
            public DestinationJobFailedCallback(JobID jobID)
            {
                this.JobID = jobID;
            }
        }

Only using MsgClientJustStrings as a placeholder. Actual response seems to have a 1-byte body, so far I've only seen it set to 0x00.

Not sure how this would work with #170.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions