Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Better Together
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ios-dev-group-i
Better Together
Commits
8c33e844
Commit
8c33e844
authored
4 years ago
by
lukasWoyke
Browse files
Options
Downloads
Patches
Plain Diff
More detailed comments.
parent
beffde5a
No related branches found
No related tags found
2 merge requests
!62
Fix master
,
!60
Code cleanup lukas fix
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Better Together/Better Together/UIViews/CharacterManager.swift
+7
-1
7 additions, 1 deletion
...r Together/Better Together/UIViews/CharacterManager.swift
with
7 additions
and
1 deletion
Better Together/Better Together/UIViews/CharacterManager.swift
+
7
−
1
View file @
8c33e844
...
...
@@ -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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment