(exitNameSimple string, exitNameFancy string, exitRoomId int, expiresTimeString string)
| 474 | } |
| 475 | |
| 476 | func (r ScriptRoom) AddTemporaryExit(exitNameSimple string, exitNameFancy string, exitRoomId int, expiresTimeString string) bool { |
| 477 | |
| 478 | if exitNameFancy[0:1] == `:` { |
| 479 | exitNameFancy = colorpatterns.ApplyColorPattern(exitNameSimple, exitNameFancy[1:]) |
| 480 | } |
| 481 | |
| 482 | tmpExit := exit.TemporaryRoomExit{ |
| 483 | RoomId: exitRoomId, |
| 484 | Title: exitNameFancy, |
| 485 | UserId: 0, |
| 486 | Expires: expiresTimeString, |
| 487 | } |
| 488 | |
| 489 | // Spawn a portal in the room that leads to the portal location |
| 490 | return r.roomRecord.AddTemporaryExit(exitNameSimple, tmpExit) |
| 491 | } |
| 492 | |
| 493 | func (r ScriptRoom) RemoveTemporaryExit(exitNameSimple string, exitNameFancy string, exitRoomId int) bool { |
| 494 | tmpExit := exit.TemporaryRoomExit{ |
nothing calls this directly
no test coverage detected