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.
31 lines
1006 B
31 lines
1006 B
namespace ET |
|
{ |
|
[FriendClass(typeof(RoleInfo))] |
|
public static class RoleInfoSystem |
|
{ |
|
public static void FromMessage(this RoleInfo self, RoleInfoProto roleInfoProto) |
|
{ |
|
self.Id = roleInfoProto.Id; |
|
self.Name = roleInfoProto.Name; |
|
self.State = roleInfoProto.State; |
|
self.AccountId = roleInfoProto.AccountId; |
|
self.CreateTime = roleInfoProto.CreateTime; |
|
self.ServerId = roleInfoProto.ServerId; |
|
self.LastLoginTime = roleInfoProto.LastLoginTime; |
|
} |
|
|
|
public static RoleInfoProto ToMessage(this RoleInfo self) |
|
{ |
|
return new RoleInfoProto() |
|
{ |
|
Id = self.Id, |
|
Name = self.Name, |
|
State = self.State, |
|
AccountId = self.AccountId, |
|
CreateTime = self.CreateTime, |
|
ServerId = self.ServerId, |
|
LastLoginTime = self.LastLoginTime |
|
}; |
|
} |
|
} |
|
} |