Beispiel #1
0
 public static Offset <AddDmxRuleRangeSetting> CreateAddDmxRuleRangeSetting(FlatBufferBuilder builder,
                                                                            uint deviceId  = 0,
                                                                            uint settingId = 0,
                                                                            uint channelId = 0,
                                                                            uint ruleId    = 0,
                                                                            float on       = 0.0f,
                                                                            float off      = 0.0f,
                                                                            float start    = 0.0f,
                                                                            float step     = 0.0f)
 {
     builder.StartObject(8);
     AddDmxRuleRangeSetting.AddStep(builder, step);
     AddDmxRuleRangeSetting.AddStart(builder, start);
     AddDmxRuleRangeSetting.AddOff(builder, off);
     AddDmxRuleRangeSetting.AddOn(builder, on);
     AddDmxRuleRangeSetting.AddRuleId(builder, ruleId);
     AddDmxRuleRangeSetting.AddChannelId(builder, channelId);
     AddDmxRuleRangeSetting.AddSettingId(builder, settingId);
     AddDmxRuleRangeSetting.AddDeviceId(builder, deviceId);
     return(AddDmxRuleRangeSetting.EndAddDmxRuleRangeSetting(builder));
 }
Beispiel #2
0
 public static AddDmxRuleRangeSetting GetRootAsAddDmxRuleRangeSetting(ByteBuffer _bb, AddDmxRuleRangeSetting obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }