Exemplo n.º 1
0
 public void Load(ProtoBuf.Modifier m)
 {
     Type          = (ModifierType)m.type;
     Source        = (ModifierSource)m.source;
     Value         = m.value;
     TimeRemaining = m.timeRemaing;
 }
Exemplo n.º 2
0
 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);
 }