Diff

core/statsmanager.lua @ 6910:82765a4ec799

statsmanager: Add get() method
author Matthew Wild <mwild1@gmail.com>
date Sun, 18 Oct 2015 21:35:21 +0100
parent 6582:71b5de1d830b
child 7521:1c8b63fe6472
line wrap: on
line diff
--- a/core/statsmanager.lua	Sat Oct 17 19:30:58 2015 +0200
+++ b/core/statsmanager.lua	Sun Oct 18 21:35:21 2015 +0100
@@ -66,4 +66,7 @@
 	get_stats = function ()
 		return latest_stats, changed_stats, stats_extra;
 	end;
+	get = function (name)
+		return latest_stats[name], stats_extra[name];
+	end;
 };