Exemplo n.º 1
0
 //private List<int> next;
 public void Load(BinaryReader reader)
 {
     attach = MBUtil.LoadInt32(reader);
     if (!string.IsNullOrEmpty(MBUtil.LoadStringMaybe(reader, "bone")))
     {
         b = MBUtil.LoadInt32(reader);
     }
     x = MBUtil.LoadPoint3F(reader);
     y = MBUtil.LoadPoint3F(reader);
     z = MBUtil.LoadPoint3F(reader);
     t = MBUtil.LoadPoint3F(reader);
 }
Exemplo n.º 2
0
 public void Load(BinaryReader reader)
 {
     name     = MBUtil.LoadString(reader);
     flags    = MBUtil.LoadUInt32(reader);
     shader   = MBUtil.LoadString(reader);
     diffuseA = MBUtil.LoadString(reader);
     diffuseB = MBUtil.LoadString(reader);
     bump     = MBUtil.LoadString(reader);
     enviro   = MBUtil.LoadString(reader);
     spec     = MBUtil.LoadStringMaybe(reader, "none");
     specular = MBUtil.LoadFloat(reader);
     r        = MBUtil.LoadFloat(reader);
     g        = MBUtil.LoadFloat(reader);
     b        = MBUtil.LoadFloat(reader);
 }