コード例 #1
0
ファイル: Light.cs プロジェクト: deramscholzara/ForgePlus
 public void Save(BinaryWriterBE writer)
 {
     writer.Write((short)LightingFunction);
     writer.Write(Period);
     writer.Write(DeltaPeriod);
     writer.WriteFixed(Intensity);
     writer.WriteFixed(DeltaIntensity);
 }
コード例 #2
0
 public void Save(BinaryWriterBE writer)
 {
     writer.Write((ushort)Flags);
     writer.Write(SoundIndex);
     writer.Write(volume);
     writer.Write(deltaVolume);
     writer.Write(Period);
     writer.Write(DeltaPeriod);
     writer.Write(direction);
     writer.Write(deltaDirection);
     writer.WriteFixed(Pitch);
     writer.WriteFixed(DeltaPitch);
     writer.Write(phase);
     writer.Write(new byte[2 * 3]);
 }
コード例 #3
0
ファイル: Media.cs プロジェクト: deramscholzara/weland
 public void Save(BinaryWriterBE writer)
 {
     writer.Write((short)Type);
     writer.Write((ushort)Flags);
     writer.Write(LightIndex);
     writer.Write(direction);
     writer.Write(CurrentMagnitude);
     writer.Write(Low);
     writer.Write(High);
     writer.Write(new byte[6]); // X, Y, Height
     writer.WriteFixed(MinimumLightIntensity);
     writer.Write(new byte[4]); // texture, transfer mode
     writer.Write(new byte[4]); // unused
 }