예제 #1
0
파일: DialogChoice.cs 프로젝트: Setz0r/Onyx
        public bool Validator(DialogChoiceData data)
        {
            // TODO: validate target, zone, etc

            Logger.Success("we got 0x05B");

            return(true);
        }
예제 #2
0
파일: DialogChoice.cs 프로젝트: Setz0r/Onyx
        public bool Handler(Player player, byte[] bytes)
        {
            if (bytes.Length < MinSize || bytes.Length > MaxSize)
            {
                return(false);
            }

            DialogChoiceData DialogChoiceData = Utility.Deserialize <DialogChoiceData>(bytes);

            if (Validator(DialogChoiceData))
            {
                // TODO: Call script for whichever event this dialog is processing for

                return(true);
            }
            return(false);
        }