NScumm.Scumm.ScummEngine.ConvertVerbMessage C# (CSharp) Method

ConvertVerbMessage() private method

private ConvertVerbMessage ( byte dst, int dstPos, uint var ) : int
dst byte
dstPos int
var uint
return int
        int ConvertVerbMessage(byte[] dst, int dstPos, uint var)
        {
            var num = ReadVariable(var);
            if (num != 0)
            {
                for (int k = 1; k < Verbs.Length; k++)
                {
                    if (num == Verbs[k].VerbId && Verbs[k].Type == VerbType.Text && (Verbs[k].SaveId == 0))
                    {
                        return ConvertMessageToString(Verbs[k].Text, dst, dstPos);
                    }
                }
            }
            return 0;
        }
ScummEngine