public virtual void Clone(out NetworkBaseCollection newReference) { newReference = this; newReference.rawBuffer = this.rawBuffer; newReference.secondaryRawBuffer = this.secondaryRawBuffer; newReference.socketReference = this.socketReference; }
protected NetworkRawEntity() { this.ownerNetworkCollection = null; this.id = System.Guid.NewGuid(); this.timer = new Stopwatch(); this.timer.Start(); }
public NetworkRawEntity(ref Socket owner) { this.id = System.Guid.NewGuid(); this.ownerNetworkCollection = new NetworkBaseCollection(KSPM.Network.Server.ServerSettings.ServerBufferSize); this.ownerNetworkCollection.socketReference = owner; this.timer = new Stopwatch(); this.timer.Start(); }