-- remove extra lines.
-- create PrototypesCollection.
-- add using Reflect;
--refactor:
public var id2location(default, null):Map<Int, LocationProto> - > public var locations(default, null):PrototypesCollection<LocationProto>;
public var id2reward(default, null):Map<Int, RewardProto> -> public var rewards(default, null):PrototypesCollection<RewardProto>;