Classes
| Global | Description |
|---|---|
| Game_Temp | |
| Game_Temp |
Game_Temp
Kind: global class
- Game_Temp
- new Game_Temp()
- new Game_Temp()
- .initialize()
- .isPlaytest() ⇒
boolean - .reserveCommonEvent(commonEventId)
- .clearCommonEvent()
- .isCommonEventReserved() ⇒
boolean - .reservedCommonEvent() ⇒
Object - .setDestination(x, y)
- .clearDestination()
- .isDestinationValid() ⇒
boolean - .destinationX() ⇒
number|null - .destinationY() ⇒
number|null
new Game_Temp()
管理游戏中的临时数据,包括测试模式、公共事件、目的地坐标等
new Game_Temp()
Game_Temp constructor
Game_Temp.initialize()
初始化临时数据对象的所有属性
Kind: static method of Game_Temp
Game_Temp.isPlaytest() ⇒ boolean
检查当前是否为玩家测试模式
Kind: static method of Game_Temp
Returns: boolean - 如果是玩家测试模式返回 true - True if in playtest mode
Game_Temp.reserveCommonEvent(commonEventId)
储存指定 ID 的公共事件
Kind: static method of Game_Temp
| Param | Type | Description |
|---|---|---|
| commonEventId | number | 公共事件 ID - Common event ID |
Game_Temp.clearCommonEvent()
清除已储存的公共事件
Kind: static method of Game_Temp
Game_Temp.isCommonEventReserved() ⇒ boolean
检查是否有公共事件被储存
Kind: static method of Game_Temp
Returns: boolean - 如果有公共事件被储存返回 true - True if a common event is reserved
Game_Temp.reservedCommonEvent() ⇒ Object
获取已储存的公共事件数据
Kind: static method of Game_Temp
Returns: Object - 储存的公共事件数据 - The reserved common event data
Game_Temp.setDestination(x, y)
设置目的地坐标
Kind: static method of Game_Temp
| Param | Type | Description |
|---|---|---|
| x | number | X 坐标 - X coordinate |
| y | number | Y 坐标 - Y coordinate |
Game_Temp.clearDestination()
清除目的地坐标
Kind: static method of Game_Temp
Game_Temp.isDestinationValid() ⇒ boolean
检查目的地是否有效
Kind: static method of Game_Temp
Returns: boolean - 如果目的地有效返回 true - True if destination is valid
Game_Temp.destinationX() ⇒ number | null
获取目的地 X 坐标
Kind: static method of Game_Temp
Returns: number | null - 目的地 X 坐标 - The destination X coordinate
Game_Temp.destinationY() ⇒ number | null
获取目的地 Y 坐标
Kind: static method of Game_Temp
Returns: number | null - 目的地 Y 坐标 - The destination Y coordinate
Game_Temp
Kind: global class
- Game_Temp
- new Game_Temp()
- new Game_Temp()
- .initialize()
- .isPlaytest() ⇒
boolean - .reserveCommonEvent(commonEventId)
- .clearCommonEvent()
- .isCommonEventReserved() ⇒
boolean - .reservedCommonEvent() ⇒
Object - .setDestination(x, y)
- .clearDestination()
- .isDestinationValid() ⇒
boolean - .destinationX() ⇒
number|null - .destinationY() ⇒
number|null
new Game_Temp()
管理游戏中的临时数据,包括测试模式、公共事件、目的地坐标等
new Game_Temp()
Game_Temp constructor
Game_Temp.initialize()
初始化临时数据对象的所有属性
Kind: static method of Game_Temp
Game_Temp.isPlaytest() ⇒ boolean
检查当前是否为玩家测试模式
Kind: static method of Game_Temp
Returns: boolean - 如果是玩家测试模式返回 true - True if in playtest mode
Game_Temp.reserveCommonEvent(commonEventId)
储存指定 ID 的公共事件
Kind: static method of Game_Temp
| Param | Type | Description |
|---|---|---|
| commonEventId | number | 公共事件 ID - Common event ID |
Game_Temp.clearCommonEvent()
清除已储存的公共事件
Kind: static method of Game_Temp
Game_Temp.isCommonEventReserved() ⇒ boolean
检查是否有公共事件被储存
Kind: static method of Game_Temp
Returns: boolean - 如果有公共事件被储存返回 true - True if a common event is reserved
Game_Temp.reservedCommonEvent() ⇒ Object
获取已储存的公共事件数据
Kind: static method of Game_Temp
Returns: Object - 储存的公共事件数据 - The reserved common event data
Game_Temp.setDestination(x, y)
设置目的地坐标
Kind: static method of Game_Temp
| Param | Type | Description |
|---|---|---|
| x | number | X 坐标 - X coordinate |
| y | number | Y 坐标 - Y coordinate |
Game_Temp.clearDestination()
清除目的地坐标
Kind: static method of Game_Temp
Game_Temp.isDestinationValid() ⇒ boolean
检查目的地是否有效
Kind: static method of Game_Temp
Returns: boolean - 如果目的地有效返回 true - True if destination is valid
Game_Temp.destinationX() ⇒ number | null
获取目的地 X 坐标
Kind: static method of Game_Temp
Returns: number | null - 目的地 X 坐标 - The destination X coordinate
Game_Temp.destinationY() ⇒ number | null
获取目的地 Y 坐标
Kind: static method of Game_Temp
Returns: number | null - 目的地 Y 坐标 - The destination Y coordinate