public override bool EnetHostService(EnetHost host, int timeout, EnetEventRef enetEvent) { EnetHostNative host_ = (EnetHostNative)host; ENet.Event e; bool ret = host_.host.Service(timeout, out e); EnetEventNative ee = new EnetEventNative(); ee.e = e; enetEvent.e = ee; return ret; }
public override bool EnetHostCheckEvents(EnetHost host, EnetEventRef event_) { EnetHostNative host_ = (EnetHostNative)host; ENet.Event e; bool ret = host_.host.CheckEvents(out e); EnetEventNative ee = new EnetEventNative(); ee.e = e; event_.e = ee; return ret; }