25
Dec
So, I went a made a thing.. it’s called Journal Limpet, and the main purpose for it, is to allow players to store whatever journals that Frontier has stored, for all platforms. I recently also released so that we push those journals to EDDN automatically. :) Registration is simple, just login with your Frontier credentials, […]
Comments Off
09
Mar
stored in: Programming and tagged:
This is for Unity 4. Download me here
Comments Off
11
Jan
stored in: Programming and tagged:
I need some pointers in what people think would be better, performance-wise. (It’s not optimal to use strings as keys, I know)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
public class Trictionary<T> { Dictionary<string, T> values; public Trictionary() { values = new Dictionary<string, T>(); } public byte this[int x, int y, int z] { get { if(values.ContainsKey(x + "|" + y + "|" + z)) return values[x + "|" + y + "|" + z]; return default(T); } } } |
Edit: This is the code I’m using right now. (Takes 2 seconds to fill those 33 million bytes) Although, then I’m limited to setting the max-values, and int.MaxValue in all dimensions doesn’t […]
Comments Off