public static byte[] write(QuestDefinitionModule quest) { var cmd = new ByteArray(ID); cmd.AddBytes(quest.write()); return(cmd.ToByteArray()); }
public static byte[] write(QuestDefinitionModule definition, List <QuestChallengeRatingModule> ratings, QuestChallengeRatingModule playersRating) { var cmd = new ByteArray(ID); cmd.AddBytes(definition.write()); cmd.Integer(ratings.Count); foreach (var loc0 in ratings) { cmd.AddBytes(loc0.write()); } cmd.AddBytes(playersRating.write()); return(cmd.ToByteArray()); }