Esempio n. 1
0
        public void UpdateServerGroupList(ServerGroupList msg)
        {
            var obj = new ServerGroup();

            { var tmpv = msg.Name; if (tmpv != null)
              {
                  obj.Name = (str)tmpv;
              }
            }
            { var tmpv = msg.GroupType; if (tmpv != null)
              {
                  obj.GroupType = (GroupType)tmpv;
              }
            }
            { var tmpv = msg.IconId; if (tmpv != null)
              {
                  obj.IconId = (IconHash)tmpv;
              }
            }
            { var tmpv = msg.IsPermanent; if (tmpv != null)
              {
                  obj.IsPermanent = (bool)tmpv;
              }
            }
            { var tmpv = msg.SortId; if (tmpv != null)
              {
                  obj.SortId = (i32)tmpv;
              }
            }
            { var tmpv = msg.NamingMode; if (tmpv != null)
              {
                  obj.NamingMode = (GroupNamingMode)tmpv;
              }
            }
            { var tmpv = msg.NeededModifyPower; if (tmpv != null)
              {
                  obj.NeededModifyPower = (i32)tmpv;
              }
            }
            { var tmpv = msg.NeededMemberAddPower; if (tmpv != null)
              {
                  obj.NeededMemberAddPower = (i32)tmpv;
              }
            }
            { var tmpv = msg.NeededMemberRemovePower; if (tmpv != null)
              {
                  obj.NeededMemberRemovePower = (i32)tmpv;
              }
            }
            SetServerGroup(obj, msg.ServerGroupId);

            PostServerGroupList(msg);
        }
Esempio n. 2
0
 private void SetServerGroup(ServerGroup serverGroup, ServerGroupId id)
 {
     Groups[id] = serverGroup;
 }