| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- namespace ENet
- {
- public enum EventState
- {
- CONNECTED = 0,
- DISCONNECTED = 1,
- }
- public class Event
- {
- private readonly ENetEvent ev;
- private EventState peerState = EventState.CONNECTED;
- public Event(ENetEvent ev)
- {
- this.ev = ev;
- }
- public EventState EventState
- {
- get
- {
- return this.peerState;
- }
- set
- {
- this.peerState = value;
- }
- }
- public ENetEvent Ev
- {
- get
- {
- return this.ev;
- }
- }
- public IntPtr PacketPtr
- {
- get
- {
- return this.Ev.Packet;
- }
- }
- public IntPtr PeerPtr
- {
- get
- {
- return this.Ev.Peer;
- }
- }
- public EventType Type
- {
- get
- {
- return this.Ev.Type;
- }
- }
- }
- }
|