Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.IO.ColorSerializer Class Reference
+ Inheritance diagram for Terraria.ModLoader.IO.ColorSerializer:
+ Collaboration diagram for Terraria.ModLoader.IO.ColorSerializer:

Public Member Functions

override Color Deserialize (int tag)
 
override int Serialize (Color value)
 

Detailed Description

Definition at line 146 of file TagSerializer.cs.

Member Function Documentation

override Color Terraria.ModLoader.IO.ColorSerializer.Deserialize ( int  tag)

Definition at line 152 of file TagSerializer.cs.

152  {
153  return new Color(tag & 0xFF, tag >> 8 & 0xFF, tag >> 16 & 0xFF, tag >> 24 & 0xFF);
154  }
override int Terraria.ModLoader.IO.ColorSerializer.Serialize ( Color  value)

Definition at line 148 of file TagSerializer.cs.

148  {
149  return (int)value.PackedValue;
150  }