NetObj are collections of data that will be translatable across network
Rudimentary example: sending PlayerStatus across the network
Note: NetComp
is-a IComp
PlayerObj: NetObj {
netcomp...
PlayerStatus
}
contains information we want to send across network
PlayerStatus: NetComp {
health: NetworkVariable <float>
position: NetworkVariable<vec3>
eye_color
meshdata
net_id
}
Not all PlayerObj need to be sent across the network
Netman Creates a PlayerPacket from NetObj
PlayerState {
net_id
health
pos
}