hytopia 0.1.70 → 0.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/server.d.ts CHANGED
@@ -614,6 +614,15 @@ export declare enum ChatEventType {
614
614
  * @public
615
615
  */
616
616
  export declare class ChatManager {
617
+ /**
618
+ * A function that is called when a broadcast (public) message is sent
619
+ * by a player or the server.
620
+ *
621
+ * @param player - The player that sent the message, or undefined if the message is a system message from the server.
622
+ * @param message - The message to send.
623
+ * @param color - The color of the message as a hex color code, excluding #.
624
+ */
625
+ onBroadcastMessage?: (player: Player | undefined, message: string, color?: string) => void;
617
626
 
618
627
 
619
628
 
@@ -629,7 +638,7 @@ export declare class ChatManager {
629
638
  */
630
639
  unregisterCommand(command: string): void;
631
640
  /**
632
- * Send a broadcast message to all players in the world.
641
+ * Send a system broadcast message to all players in the world.
633
642
  * @param message - The message to send.
634
643
  * @param color - The color of the message as a hex color code, excluding #.
635
644
  *
@@ -640,7 +649,7 @@ export declare class ChatManager {
640
649
  */
641
650
  sendBroadcastMessage(message: string, color?: string): void;
642
651
  /**
643
- * Send a message to a specific player, only visible to them.
652
+ * Send a system message to a specific player, only visible to them.
644
653
  * @param player - The player to send the message to.
645
654
  * @param message - The message to send.
646
655
  * @param color - The color of the message as a hex color code, excluding #.
@@ -653,6 +662,7 @@ export declare class ChatManager {
653
662
  sendPlayerMessage(player: Player, message: string, color?: string): void;
654
663
 
655
664
 
665
+
656
666
  }
657
667
 
658
668
  /**
@@ -3126,6 +3136,11 @@ export declare class RigidBody {
3126
3136
  * @param collisionGroups - The collision groups for solid colliders of the rigid body.
3127
3137
  */
3128
3138
  setCollisionGroupsForSolidColliders(collisionGroups: CollisionGroups): void;
3139
+ /**
3140
+ * Sets the collision groups for sensor colliders of the rigid body.
3141
+ * @param collisionGroups - The collision groups for sensor colliders of the rigid body.
3142
+ */
3143
+ setCollisionGroupsForSensorColliders(collisionGroups: CollisionGroups): void;
3129
3144
  /**
3130
3145
  * Sets the type of the rigid body.
3131
3146
  * @param type - The type of the rigid body.