namespace Model { [ObjectEvent] public class NetOuterComponentEvent : ObjectEvent, IAwake, IAwake, IUpdate { public void Awake() { this.Get().Awake(); } public void Awake(string host, int port) { this.Get().Awake(); } public void Update() { this.Get().Update(); } } public class NetOuterComponent : NetworkComponent { public void Awake() { this.Awake(NetworkProtocol.TCP); this.MessagePacker = new MongoPacker(); this.MessageDispatcher = new ClientDispatcher(); } public void Awake(string host, int port) { this.Awake(NetworkProtocol.TCP, host, port); this.MessagePacker = new MongoPacker(); this.MessageDispatcher = new ClientDispatcher(); } public new void Update() { base.Update(); } } }