public void Load(ProtoBuf.Modifier m) { Type = (ModifierType)m.type; Source = (ModifierSource)m.source; Value = m.value; TimeRemaining = m.timeRemaing; }
public ProtoBuf.Modifier Save() { ProtoBuf.Modifier modifier = Pool.Get <ProtoBuf.Modifier>(); modifier.type = (int)Type; modifier.source = (int)Source; modifier.value = Value; modifier.timeRemaing = TimeRemaining; return(modifier); }