> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/ios/swift-playgrounds/learn-to-code-2/types/charactername.md).

# 🔸CharacterName

## Declaration

```swift
public enum CharacterName: String {
    
    case byte
    case blu
    case hopper
    case octet
    
    /// This ties the pubilc facing `CharacterName` with the internal `ActorType` used for all the characters.
    var type: ActorType {
        switch self {
        case .byte  : return .byte
        case .blu   : return .blu
        case .hopper: return .hopper
        case .octet : return .octet
        }
    }
}
```

![CharacterName](https://1830103165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5-JmwCZMKh_d7RfBaN%2F-M5gdogeP3puziVcoetK%2F-M5gguoSEix1koxyeL9F%2FIMG_0054.png?alt=media\&token=1f984b64-fe07-47f5-88c0-570c44642c6e)
