@@ -108,17 +108,17 @@ private class Info<T>(Func<Player, T> handler, string? description)
108108 {
109109 [ PlayerProperty . Name ] = new Info < StaticTextValue > ( plr => plr . Nickname , null ) ,
110110 [ PlayerProperty . DisplayName ] = new Info < StaticTextValue > ( plr => plr . DisplayName , null ) ,
111- [ PlayerProperty . Role ] = new Info < EnumValue < RoleTypeId > > ( plr => plr . Role . ToEnumValue ( ) , $ "Player role type ( { nameof ( RoleTypeId ) } enum value)" ) ,
112- [ PlayerProperty . RoleRef ] = new Info < ReferenceValue > ( plr => new ( plr . RoleBase ) , $ "Reference to { nameof ( PlayerRoleBase ) } " ) ,
113- [ PlayerProperty . Team ] = new Info < EnumValue < Team > > ( plr => plr . Team . ToEnumValue ( ) , $ "Player team ( { nameof ( Team ) } enum value)" ) ,
111+ [ PlayerProperty . Role ] = new Info < EnumValue < RoleTypeId > > ( plr => plr . Role . ToEnumValue ( ) , null ) ,
112+ [ PlayerProperty . RoleRef ] = new Info < ReferenceValue < PlayerRoleBase > > ( plr => new ( plr . RoleBase ) , null ) ,
113+ [ PlayerProperty . Team ] = new Info < EnumValue < Team > > ( plr => plr . Team . ToEnumValue ( ) , null ) ,
114114 [ PlayerProperty . Inventory ] = new Info < CollectionValue < Item > > ( plr => new ( plr . Inventory . UserInventory . Items . Values . Select ( Item . Get ) . RemoveNulls ( ) ) , $ "A collection of references to { nameof ( Item ) } objects") ,
115115 [ PlayerProperty . ItemCount ] = new Info < NumberValue > ( plr => ( decimal ) plr . Inventory . UserInventory . Items . Count , null ) ,
116- [ PlayerProperty . HeldItemRef ] = new Info < ReferenceValue > ( plr => new ( plr . CurrentItem ) , "A reference to the item the player is holding" ) ,
116+ [ PlayerProperty . HeldItemRef ] = new Info < ReferenceValue < Item > > ( plr => new ( plr . CurrentItem ) , "A reference to the item the player is holding" ) ,
117117 [ PlayerProperty . IsAlive ] = new Info < BoolValue > ( plr => plr . IsAlive , null ) ,
118118 [ PlayerProperty . UserId ] = new Info < StaticTextValue > ( plr => plr . UserId , "The ID of the account (like SteamID64)" ) ,
119119 [ PlayerProperty . PlayerId ] = new Info < NumberValue > ( plr => plr . PlayerId , "The ID that the server assigned for this round" ) ,
120120 [ PlayerProperty . CustomInfo ] = new Info < StaticTextValue > ( plr => plr . CustomInfo , "Custom info set by the server" ) ,
121- [ PlayerProperty . RoomRef ] = new Info < ReferenceValue > ( plr => new ( plr . Room ) , "A reference to the room the player is in" ) ,
121+ [ PlayerProperty . RoomRef ] = new Info < ReferenceValue < Room > > ( plr => new ( plr . Room ) , "A reference to the room the player is in" ) ,
122122 [ PlayerProperty . Health ] = new Info < NumberValue > ( plr => ( decimal ) plr . Health , null ) ,
123123 [ PlayerProperty . MaxHealth ] = new Info < NumberValue > ( plr => ( decimal ) plr . MaxHealth , null ) ,
124124 [ PlayerProperty . ArtificialHealth ] = new Info < NumberValue > ( plr => ( decimal ) plr . ArtificialHealth , null ) ,
0 commit comments