Combine previous struct storage method into objectinfo class. Added mask to limit vision.

Signed-off-by: UltimateGoDLikE <lohtonghong@hotmail.com>