Пример #1
0
 public static Offset <AddDmxDeviceSetting> CreateAddDmxDeviceSetting(FlatBufferBuilder builder,
                                                                      uint deviceId = 0,
                                                                      sisyfox.sisycol.DmxDeviceSettingType settingType = sisyfox.sisycol.DmxDeviceSettingType.RANGE,
                                                                      StringOffset nameOffset = default(StringOffset),
                                                                      sbyte norm = 0)
 {
     builder.StartObject(4);
     AddDmxDeviceSetting.AddName(builder, nameOffset);
     AddDmxDeviceSetting.AddDeviceId(builder, deviceId);
     AddDmxDeviceSetting.AddNorm(builder, norm);
     AddDmxDeviceSetting.AddSettingType(builder, settingType);
     return(AddDmxDeviceSetting.EndAddDmxDeviceSetting(builder));
 }
Пример #2
0
 public static Offset <GetDmxRuleSetting> CreateGetDmxRuleSetting(FlatBufferBuilder builder,
                                                                  uint deviceId      = 0,
                                                                  uint settingId     = 0,
                                                                  uint ruleSettingId = 0,
                                                                  sisyfox.sisycol.DmxDeviceSettingType type = sisyfox.sisycol.DmxDeviceSettingType.RANGE)
 {
     builder.StartObject(4);
     GetDmxRuleSetting.AddRuleSettingId(builder, ruleSettingId);
     GetDmxRuleSetting.AddSettingId(builder, settingId);
     GetDmxRuleSetting.AddDeviceId(builder, deviceId);
     GetDmxRuleSetting.AddType(builder, type);
     return(GetDmxRuleSetting.EndGetDmxRuleSetting(builder));
 }
Пример #3
0
 public static Offset <DmxDeviceSetting> CreateDmxDeviceSetting(FlatBufferBuilder builder,
                                                                StringOffset nameOffset = default(StringOffset),
                                                                int storageRef          = 0,
                                                                uint ruleSettingCount   = 0,
                                                                sbyte norm  = 0,
                                                                sbyte value = 0,
                                                                sisyfox.sisycol.DmxDeviceSettingType type = sisyfox.sisycol.DmxDeviceSettingType.RANGE)
 {
     builder.StartObject(6);
     DmxDeviceSetting.AddRuleSettingCount(builder, ruleSettingCount);
     DmxDeviceSetting.AddStorageRef(builder, storageRef);
     DmxDeviceSetting.AddName(builder, nameOffset);
     DmxDeviceSetting.AddType(builder, type);
     DmxDeviceSetting.AddValue(builder, value);
     DmxDeviceSetting.AddNorm(builder, norm);
     return(DmxDeviceSetting.EndDmxDeviceSetting(builder));
 }
Пример #4
0
 public static void AddSettingType(FlatBufferBuilder builder, sisyfox.sisycol.DmxDeviceSettingType settingType)
 {
     builder.AddSbyte(1, (sbyte)settingType, 0);
 }