コード例 #1
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            maxGradient = new GradientNEW(stream);
            minGradient = new GradientNEW(stream);
            minColor    = new Color4(reader.ReadInt32());
            maxColor    = new Color4(reader.ReadInt32());
            minMaxState = reader.ReadInt16();
            reader.ReadBytes(2);
        }
コード例 #2
0
ファイル: ParticleSystem.cs プロジェクト: hejob/SB3Utility
 public void LoadFrom(Stream stream)
 {
     BinaryReader reader = new BinaryReader(stream);
     maxGradient = new GradientNEW(stream);
     minGradient = new GradientNEW(stream);
     minColor = new Color4(reader.ReadInt32());
     maxColor = new Color4(reader.ReadInt32());
     minMaxState = reader.ReadInt16();
     reader.ReadBytes(2);
 }