public void SetColors() { SetColors( dataPiece.GetValue <Color>("top"), dataPiece.GetValue <Color>("middle"), dataPiece.GetValue <Color>("bottom")); }
protected override void Deserialize(ValuedSlimeTrait <T> trait, CompoundDataPiece piece) { trait.Value = piece.GetValue <T>("value"); }
protected override void Deserialize(BooleanSlimeTrait trait, CompoundDataPiece piece) { trait.Enabled = piece.GetValue <bool>("enabled"); }