コード例 #1
0
        public override string DataToValue(ValueElement element, dynamic data)
        {
            string type  = ctdaTypeEnum.DataToValue(element, data & 0xE0);
            string flags = ctdaTypeFlags.DataToValue(element, data & 0x1F);

            return(flags != "" ? $"{type} / {flags}" : type);
        }
コード例 #2
0
        public override string DataToValue(ValueElement element, dynamic data)
        {
            Int64 n             = (Int64)data;
            var   eventFunction = eventFunctionEnum.DataToValue(element, n & 0xFFFF);
            var   eventMember   = eventMemberEnum.DataToValue(element, n >> 16);

            return($"{eventFunction}:{eventMember}");
        }
コード例 #3
0
        public override string DataToValue(ValueElement element, dynamic data)
        {
            long index = GetIndex(data);

            return(actorValueEnum.DataToValue(element, index));
        }