Skip to content
Snippets Groups Projects
Commit 8c33e844 authored by lukasWoyke's avatar lukasWoyke
Browse files

More detailed comments.

parent beffde5a
No related branches found
No related tags found
2 merge requests!62Fix master,!60Code cleanup lukas fix
......@@ -97,9 +97,15 @@ class CharacterManager {
return nil
}
private static let numberOfSendImageNames = 3
// In multiplayer mode we only exchange the name of 3 images (body,arm,hand) beacuse of perfomance reasons.
// This function reconstructs the howl cusomozation (which includes images for 9 body parts) out of the 3 image names.
/// This function reconstructs the howl cusomozation (which includes images for 9 body parts) out of the 3 image names.
/// - Parameter config: the 3 images names received
/// - Returns: The 9 image names for each body part.
static func getCompleteCustomization(for config: [String]?) -> [String]? {
guard config != nil else { return nil }
guard config!.count == 3 else { return nil }
guard config!.count == numberOfSendImageNames else { return nil }
let Body = config![0]
let LeftUpperArm = config![1]
let LeftLowerArm = config![1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment