View Single Post
NIGathan
Senior Member
Join Date: Aug 2011
Location: /dev/null
Old 02-03-2019 , 11:39   Re: Trying to play with the new enum structs, but....
Reply With Quote #8

So after a good bit of trial and error I have managed to create a fully working test plugin that utilizes StringMaps to store data to and from an enum struct within a methodmap wrapper. I tried to use ArrayLists first for performance's sake, but the BlockSize seemed to truncate arrays.. This makes a methodmap act more like a real class object, but sacrifices performance.

I've struggled to find many real use examples of how to make a methodmap fully contained so hopefully this will prove useful to some of you here.
Attached Files
File Type: sp Get Plugin or Get Source (transitional_test.sp - 142 views - 8.7 KB)

Last edited by NIGathan; 02-03-2019 at 11:50.
NIGathan is offline