roblox_emulator: Sound:Play() stub

This commit is contained in:
2025-04-23 12:23:21 -07:00
parent 16dfe7524f
commit 8b2f37d3d5

View File

@@ -450,9 +450,10 @@ const GET_SERVICE:ClassFunctionPointer=cf!(|lua,_this,service:mlua::String|{
} }
}) })
}); });
const GET_PLAYERS:ClassFunctionPointer=cf!(|_lua,_this,()|{ const GET_PLAYERS:ClassFunctionPointer=cf!(|_lua,_this,()|->mlua::Result<_>{
Ok::<_,mlua::Error>(Vec::<Instance>::new()) Ok(Vec::<Instance>::new())
}); });
const NO_OP:ClassFunctionPointer=cf!(|_lua,_this,_:mlua::MultiValue|->mlua::Result<_>{Ok(())});
static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{ static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{
"DataModel"=>phf::phf_map!{ "DataModel"=>phf::phf_map!{
"service"=>GET_SERVICE, "service"=>GET_SERVICE,
@@ -465,7 +466,10 @@ static CLASS_FUNCTION_DATABASE:CFD=phf::phf_map!{
"Players"=>phf::phf_map!{ "Players"=>phf::phf_map!{
"players"=>GET_PLAYERS, "players"=>GET_PLAYERS,
"GetPlayers"=>GET_PLAYERS, "GetPlayers"=>GET_PLAYERS,
} },
"Sound"=>phf::phf_map!{
"Play"=>NO_OP,
},
}; };
/// A store of created functions for each Roblox class. /// A store of created functions for each Roblox class.