🅿️Item
(protocol)
Declaration
public protocol Item: class, Animatable, Identifiable, CustomDebugStringConvertible
↖️ inherits from:🅿️ Animatable, 🅿️ Identifiable, 🅿️CustomDebugStringConvertible
↘️ comformed by:🍄 Actor, 🍄 Portal
Instance Property Requirements
屬性
型別
說明
id
Identifier
world
GridWorld?
node
NodeWrapper
verticalOffset
SCNFloat
isStackable
Bool
speakableDescription
String
Instance Method Requirements
方法
參數
型別
說明
loadGeometry()
updateAppearance(traitCollection:)
traitCollection
UITraitCollection
Static Property Requirements
屬性
型別
說明
identifier
WorldNodeIdentifier
Protocol Extension
Instance Properties
屬性
型別
預設行為╱說明
heading 🔢
Direction
coordinate 🔢
Coordinate
height 🔢
Int
isStackable 🔢
Bool
false
verticalOffset 🔢
SCNFloat
0
baseMessage 🔢
[PlaygroundValue]
Instance Methods
方法
參數
型別
傳回
預設行為╱說明
removeFromWorld()
world?.remove(self)
Last updated
Was this helpful?