You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
907 B
27 lines
907 B
3 years ago
|
namespace ET
|
||
|
{
|
||
|
[FriendClass(typeof(Synthesis))]
|
||
|
public static class SynthesisSystem
|
||
|
{
|
||
|
public static void FromMessage(this Synthesis self, SynthesisProto synthesisProto)
|
||
|
{
|
||
|
self.ConfigId = synthesisProto.ConfigId;
|
||
|
self.UpdateTime = synthesisProto.UpdateTime;
|
||
|
self.MaxAmount = synthesisProto.MaxAmount;
|
||
|
self.CurrAmount = synthesisProto.CurrAmount;
|
||
|
self.Progress = synthesisProto.Progress;
|
||
|
}
|
||
|
|
||
|
public static SynthesisProto ToMessage(this Synthesis self)
|
||
|
{
|
||
|
SynthesisProto proto = new SynthesisProto();
|
||
|
proto.ConfigId = self.ConfigId;
|
||
|
proto.UpdateTime = self.UpdateTime;
|
||
|
proto.MaxAmount = self.MaxAmount;
|
||
|
proto.CurrAmount = self.CurrAmount;
|
||
|
proto.Progress = self.Progress;
|
||
|
|
||
|
return proto;
|
||
|
}
|
||
|
}
|
||
|
}
|