예제 #1
0
파일: Addon.cs 프로젝트: paperclip/krpc
 internal static void RemoveObject (IDrawable obj)
 {
     var client = CallContext.Client;
     if (!objects.ContainsKey (client) || !objects [client].Contains (obj))
         throw new ArgumentException ("Drawing object not found");
     obj.Destroy ();
     objects [client].Remove (obj);
 }
예제 #2
0
파일: Addon.cs 프로젝트: key50/My_kRPC
        internal static void RemoveObject(IDrawable obj)
        {
            var client = CallContext.Client;

            if (!objects.ContainsKey(client) || !objects [client].Contains(obj))
            {
                throw new ArgumentException("Drawing object not found");
            }
            obj.Destroy();
            objects [client].Remove(obj);
        }