Exemplo n.º 1
0
        public static GomObject GetObject(ulong id)
        {
            GomObject result = Get <GomObject>(id);

            if (result != null)
            {
                result.Load();
            }
            return(result);
        }
Exemplo n.º 2
0
        public static GomObject GetObject(string name)
        {
            GomObject result = Get <GomObject>(name);

            if (result != null)
            {
                result.Load();
            }
            return(result);
        }
Exemplo n.º 3
0
        public static SortedDictionary <string, long> GetAllInstanceNames()
        {
            var results = new SortedDictionary <string, long>();

            Type resultType = typeof(GomObject);
            Dictionary <string, DomType> nameMap;

            if (!nodeLookup.TryGetValue(resultType, out nameMap))
            {
                return(results);
            }

            foreach (var kvp in nameMap)
            {
                GomObject val = (GomObject)kvp.Value;
                results.Add(kvp.Key, val.Checksum);
            }

            return(results);
        }