Yeah, I kinda gave up, i will fix it later or something I recon
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package packets
|
||||
|
||||
import (
|
||||
"esdi/peripheral/communication/constvar"
|
||||
)
|
||||
|
||||
type NewWindowID struct {
|
||||
StartMarker byte
|
||||
ID int16
|
||||
EndMarker byte
|
||||
}
|
||||
|
||||
func (pkt *NewWindowID) Validate() bool {
|
||||
if pkt.StartMarker != constvar.StartOfText ||
|
||||
pkt.EndMarker != constvar.EndOfText {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user