You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "camera_server.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
#include "rendering_server.h"
|
||||
#include "servers/camera/camera_feed.h"
|
||||
|
||||
@@ -143,8 +144,8 @@ int CameraServer::get_feed_count() {
|
||||
return feeds.size();
|
||||
};
|
||||
|
||||
Array CameraServer::get_feeds() {
|
||||
Array return_feeds;
|
||||
TypedArray<CameraFeed> CameraServer::get_feeds() {
|
||||
TypedArray<CameraFeed> return_feeds;
|
||||
int cc = get_feed_count();
|
||||
return_feeds.resize(cc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user