コード例 #1
0
 public CubismPhysicsInput(BinaryReader reader)
 {
     SourceId           = reader.ReadAlignedString();
     ScaleOfTranslation = reader.ReadVector2();
     AngleScale         = reader.ReadSingle();
     Weight             = reader.ReadSingle();
     SourceComponent    = (CubismPhysicsSourceComponent)reader.ReadInt32();
     IsInverted         = reader.ReadBoolean();
     reader.AlignStream();
 }
コード例 #2
0
 public CubismPhysicsOutput(BinaryReader reader)
 {
     DestinationId    = reader.ReadAlignedString();
     ParticleIndex    = reader.ReadInt32();
     TranslationScale = reader.ReadVector2();
     AngleScale       = reader.ReadSingle();
     Weight           = reader.ReadSingle();
     SourceComponent  = (CubismPhysicsSourceComponent)reader.ReadInt32();
     IsInverted       = reader.ReadBoolean();
     reader.AlignStream();
 }