---
description: 傳送門
---

# Portal

參看：[型別繼承圖](..#xing-bie-ji-cheng-tu)

## Declaration

```swift
public final class Portal: Item, NodeConstructible
```

:arrow\_upper\_left:comforms to：[🅿️ Item](item), 🅿️ NodeConstructible (internal)

### Instance Properties

| 屬性           | 型別   | 預設值  | 說明 |
| ------------ | ---- | ---- | -- |
| **isActive** | Bool | true |    |

### Instance Methods

| 方法                   | 參數    | 型別    | 預設值 | 說明                                         |
| -------------------- | ----- | ----- | --- | ------------------------------------------ |
| **init**(**color**:) | color | Color |     | Creates a portal with the specified color. |
