Exemple #1
0
        public static void Init(RPCObject obj)
        {
            if (Objects.ContainsKey(obj.DynamicId))
            {
                throw new Exception("Given object was already initialized");
            }
            ulong id = Next();

            obj.DynamicId = id;
            Objects.Add(id, obj);
        }
Exemple #2
0
 public static void Release(RPCObject obj)
 {
     Logger.Trace("Releasing object {0}", obj.DynamicId);
     Objects.Remove(obj.DynamicId);
 }