This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ type CameraInstructionSet struct {
72
72
Rotation Optional [mgl32.Vec2 ]
73
73
// Facing is a vector that the camera will always face towards during the duration of the instruction.
74
74
Facing Optional [mgl32.Vec3 ]
75
+ // ViewOffset is an offset based on a pivot point to the player, causing the camera to be shifted in a
76
+ // certain direction.
77
+ ViewOffset Optional [mgl32.Vec2 ]
75
78
// Default determines whether the camera is a default camera or not.
76
79
Default Optional [bool ]
77
80
}
@@ -83,6 +86,7 @@ func (x *CameraInstructionSet) Marshal(r IO) {
83
86
OptionalFunc (r , & x .Position , r .Vec3 )
84
87
OptionalFunc (r , & x .Rotation , r .Vec2 )
85
88
OptionalFunc (r , & x .Facing , r .Vec3 )
89
+ OptionalFunc (r , & x .ViewOffset , r .Vec2 )
86
90
OptionalFunc (r , & x .Default , r .Bool )
87
91
}
88
92
Original file line number Diff line number Diff line change @@ -491,6 +491,12 @@ const (
491
491
SoundEventDecoratedPotInsert
492
492
SoundEventDecoratedPotInsertFail
493
493
SoundEventCrafterDisableSlot
494
+ _
495
+ _
496
+ _
497
+ _
498
+ _
499
+ _
494
500
SoundEventCopperBulbTurnOn
495
501
SoundEventCopperBulbTurnOff
496
502
SoundEventAmbientInAir
@@ -524,12 +530,6 @@ const (
524
530
SoundEventMaceHeavySmashGround
525
531
SoundEventOminousItemSpawnerSpawnItemBegin
526
532
_
527
- _
528
- _
529
- _
530
- _
531
- _
532
- _
533
533
SoundEventApplyEffectBadOmen
534
534
SoundEventApplyEffectRaidOmen
535
535
SoundEventApplyEffectTrialOmen
Original file line number Diff line number Diff line change 5
5
)
6
6
7
7
// ServerBoundDiagnostics is sent by the client to tell the server about the performance diagnostics
8
- // of the client. It is sent by the client roughly every 500ms or 10 in-game ticks.
8
+ // of the client. It is sent by the client roughly every 500ms or 10 in-game ticks when the
9
+ // "Creator > Enable Client Diagnostics" setting is enabled.
9
10
type ServerBoundDiagnostics struct {
10
11
// AverageFramesPerSecond is the average amount of frames per second that the client has been
11
12
// running at.
You can’t perform that action at this time.
0 commit comments