public static PmxBodyPassGroup FromFlagBits(ushort bits) { var g = new PmxBodyPassGroup(); for (var i = 0; i < FlagsCount; ++i) { g.Flags[i] = (bits & (1 << i)) != 0; } return(g); }
protected PmxBaseBody() { PassGroup = PmxBodyPassGroup.FromFlagBits(0); }