public override bool UnPackError(UnPacker unpacker, ref string failedOn) { KickVote = unpacker.GetBool(); KickMin = unpacker.GetInt(); SpectatorsVote = unpacker.GetBool(); TeamLock = unpacker.GetBool(); TeamBalance = unpacker.GetBool(); PlayerSlots = unpacker.GetInt(); return(unpacker.Error); }
public override bool UnPackError(UnPacker unpacker, ref string failedOn) { ClientID = unpacker.GetInt(); Reason = unpacker.GetString(Sanitize); Silent = unpacker.GetBool(); return(unpacker.Error); }
public override bool UnPackError(UnPacker unpacker, ref string failedOn) { VoteType = unpacker.GetString(Sanitize); Value = unpacker.GetString(Sanitize); Reason = unpacker.GetString(Sanitize); Force = unpacker.GetBool(); return(unpacker.Error); }
public override bool UnPackError(UnPacker unpacker, ref string failedOn) { Name = unpacker.GetString(Sanitize); Clan = unpacker.GetString(Sanitize); Country = unpacker.GetInt(); unpacker.GetString(SkinPartNames, Sanitize); unpacker.GetBool(UseCustomColors); unpacker.GetInt(SkinPartColors); return(unpacker.Error); }
public override bool UnPackError(UnPacker unpacker, ref string failedOn) { ClientID = unpacker.GetInt(); Local = unpacker.GetBool(); Team = (Team)unpacker.GetInt(); Name = unpacker.GetString(Sanitize); Clan = unpacker.GetString(Sanitize); Country = unpacker.GetInt(); unpacker.GetString(SkinPartNames, Sanitize); unpacker.GetBool(UseCustomColors); unpacker.GetInt(SkinPartColors); Silent = unpacker.GetBool(); if (Team < Team.Spectators || Team > Team.Blue) { failedOn = nameof(Team); } return(unpacker.Error); }
public override bool UnPackError(UnPacker unpacker, ref string failedOn) { ClientId = unpacker.GetInt(); Team = (Team) unpacker.GetInt(); Silent = unpacker.GetBool(); CooldownTick = unpacker.GetInt(); if (Team < Team.Spectators || Team > Team.Blue) failedOn = nameof(Team); if (CooldownTick < 0) failedOn = nameof(CooldownTick); return unpacker.Error; }