public ByteColorAlpha(ByteColor color) { R = color.R; G = color.G; B = color.B; A = 0; }
public ByteColor SkyFadeTo; //Color to fade to from CenterSky. public VirtChunk() { HorizonCloudColor = new ByteColorAlpha(); CenterCloudColor = new ByteColorAlpha(); CenterSkyColor = new ByteColor(); HorizonColor = new ByteColor(); SkyFadeTo = new ByteColor(); }
public void LoadData(byte[] data, ref int srcOffset) { //First 16 bytes are 80 00 00 00 (repeated 4 times). Unknown why. srcOffset += 16; HorizonCloudColor = new ByteColorAlpha(data, ref srcOffset); CenterCloudColor = new ByteColorAlpha(data, ref srcOffset); CenterSkyColor = new ByteColor(data, ref srcOffset); HorizonColor = new ByteColor(data, ref srcOffset); SkyFadeTo = new ByteColor(data, ref srcOffset); //More apparently unused bytes. srcOffset += 3; }
public PaleChunk() { ActorAmbient = new ByteColor(); ShadowColor = new ByteColor(); RoomFillColor = new ByteColor(); RoomAmbient = new ByteColor(); WaveColor = new ByteColor(); OceanColor = new ByteColor(); UnknownColor1 = new ByteColor(); UnknownColor2 = new ByteColor(); DoorwayColor = new ByteColor(); UnknownColor3 = new ByteColor(); FogColor = new ByteColor(); VirtIndex = 0; OceanFadeInto = new ByteColorAlpha(); ShoreFadeInto = new ByteColorAlpha(); }
public void LoadData(byte[] data, ref int srcOffset) { ActorAmbient = new ByteColor(data, ref srcOffset); ShadowColor = new ByteColor(data, ref srcOffset); RoomFillColor = new ByteColor(data, ref srcOffset); RoomAmbient = new ByteColor(data, ref srcOffset); WaveColor = new ByteColor(data, ref srcOffset); OceanColor = new ByteColor(data, ref srcOffset); UnknownColor1 = new ByteColor(data, ref srcOffset); //Unknown UnknownColor2 = new ByteColor(data, ref srcOffset); //Unknown DoorwayColor = new ByteColor(data, ref srcOffset); UnknownColor3 = new ByteColor(data, ref srcOffset); //Unknown FogColor = new ByteColor(data, ref srcOffset); VirtIndex = Helpers.Read8(data, srcOffset); srcOffset += 3; //Read8 + 2x Padding OceanFadeInto = new ByteColorAlpha(data, ref srcOffset); ShoreFadeInto = new ByteColorAlpha(data, ref srcOffset); }
public ByteColor SkyFadeTo; //Color to fade to from CenterSky. #endregion Fields #region Constructors public VirtChunk() { HorizonCloudColor = new ByteColorAlpha(); CenterCloudColor = new ByteColorAlpha(); CenterSkyColor = new ByteColor(); HorizonColor = new ByteColor(); SkyFadeTo = new ByteColor(); }