Ballz.Network.Connection.Send C# (CSharp) Метод

Send() публичный Метод

Serializes on object and send it to another game instance.
public Send ( object obj ) : bool
obj object The object to send
Результат bool
        public bool Send(object obj)
        {
            try
            {
                streamSync.WriteUpdate(obj);
                connectionStream.Flush();
            }
            catch(System.IO.IOException e)
            {
                return false;
            }
            return true;
        }