BadScript 2
Loading...
Searching...
No Matches
BadModuleStore.cs
Go to the documentation of this file.
2
4
8public class BadModuleStore
9{
13 private readonly Dictionary<string, BadObject> m_Modules = new Dictionary<string, BadObject>();
14
20 public bool IsCached(string hash)
21 {
22 return m_Modules.ContainsKey(hash);
23 }
24
30 public void Cache(string hash, BadObject module)
31 {
32 m_Modules[hash] = module;
33 }
34
40 public BadObject Get(string hash)
41 {
42 return m_Modules[hash];
43 }
44}
Is the store for all loaded modules.
void Cache(string hash, BadObject module)
Cache the specified module.
readonly Dictionary< string, BadObject > m_Modules
The Internal Module Store.
bool IsCached(string hash)
Returns true if the module is cached.
BadObject Get(string hash)
Returns the module with the specified hash.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Contains the Runtime Objects.
Definition BadArray.cs:10