Пример #1
0
 public void Load(ProtoBuf.Modifier m)
 {
     Type          = (ModifierType)m.type;
     Source        = (ModifierSource)m.source;
     Value         = m.value;
     TimeRemaining = m.timeRemaing;
 }
Пример #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);
 }