Example #1
0
func (mob *Mob) SendUpdate(writer io.Writer) (err error) {
	if err = proto.WriteEntity(writer, mob.EntityId); err != nil {
		return
	}

	err = mob.PointObject.SendUpdate(writer, mob.EntityId, mob.look.ToLookBytes())

	return
}
Example #2
0
func (item *Item) SendUpdate(writer io.Writer) (err error) {
	if err = proto.WriteEntity(writer, item.EntityId); err != nil {
		return
	}

	err = item.PointObject.SendUpdate(writer, item.EntityId, &LookBytes{0, 0})

	return
}
Example #3
0
func (object *Object) SendUpdate(writer io.Writer) (err error) {
	if err = proto.WriteEntity(writer, object.EntityId); err != nil {
		return
	}

	// TODO: Should this be the Rotation information?
	err = object.PointObject.SendUpdate(writer, object.EntityId, &LookBytes{0, 0})

	return
}