Ejemplo n.º 1
0
 public void read(ByteBuffer buffer) {
   next = DNATools.link(DNATools.ptr(buffer), BoidState.class); // get ptr
   prev = DNATools.link(DNATools.ptr(buffer), BoidState.class); // get ptr
   rules.read(buffer);
   conditions.read(buffer);
   actions.read(buffer);
   buffer.get(name);
   id = buffer.getInt();
   flag = buffer.getInt();
   ruleset_type = buffer.getInt();
   rule_fuzziness = buffer.getFloat();
   signal_id = buffer.getInt();
   channels = buffer.getInt();
   volume = buffer.getFloat();
   falloff = buffer.getFloat();
 }
Ejemplo n.º 2
0
 public void read(ByteBuffer buffer) {
   super.read(buffer);
   clone.read(buffer);
   curve = DNATools.link(DNATools.ptr(buffer), CurveMapping.class); // get ptr
   mtex.read(buffer);
   icon_imbuf = DNATools.ptr(buffer); // get ptr
   preview = DNATools.link(DNATools.ptr(buffer), PreviewImage.class); // get ptr
   buffer.get(icon_filepath);
   normal_weight = buffer.getFloat();
   blend = buffer.getShort();
   ob_mode = buffer.getShort();
   size = buffer.getInt();
   flag = buffer.getInt();
   jitter = buffer.getFloat();
   spacing = buffer.getInt();
   smooth_stroke_radius = buffer.getInt();
   smooth_stroke_factor = buffer.getFloat();
   rate = buffer.getFloat();
   for (int i = 0; i < rgb.length; i++) rgb[i] = buffer.getFloat();
   alpha = buffer.getFloat();
   sculpt_plane = buffer.getInt();
   plane_offset = buffer.getFloat();
   sculpt_tool = buffer.get();
   vertexpaint_tool = buffer.get();
   imagepaint_tool = buffer.get();
   buffer.get(pad3);
   autosmooth_factor = buffer.getFloat();
   crease_pinch_factor = buffer.getFloat();
   plane_trim = buffer.getFloat();
   height = buffer.getFloat();
   texture_sample_bias = buffer.getFloat();
   texture_overlay_alpha = buffer.getInt();
   unprojected_radius = buffer.getFloat();
   for (int i = 0; i < add_col.length; i++) add_col[i] = buffer.getFloat();
   for (int i = 0; i < sub_col.length; i++) sub_col[i] = buffer.getFloat();
 }