update

package
v0.0.0-...-5107381 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package update describes the updates to the data store that are generated in response to network data

Index

Constants

View Source
const (
	ChatTypeParty         = 0x01
	ChatTypeLS            = 0x02
	ChatTypeFC            = 0x03
	ChatTypeNoviceNetwork = 0x04

	ChatZoneTypeSay   = 0x0A
	ChatZoneTypeYell  = 0x1E
	ChatZoneTypeShout = 0x0B
)

Variables

View Source
var ErrorEntityNotFound = errors.New("entity not found")

ErrorEntityNotFound is returned if the given entity ID is not found in the list of entities for the given stream

View Source
var ErrorStreamNotFound = errors.New("stream not found")

ErrorStreamNotFound is returned if the given stream ID is not found in the list of streams

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator generates store updates for a given stream and direction of data traffic

func NewGenerator

func NewGenerator(data *datasheet.Collection) Generator

NewGenerator returns a new Generator that converts blocks to updates.

  • data stores the lookup tables for game information needed by

func (*Generator) Generate

func (g *Generator) Generate(streamID int, isEgress bool, b *xivnet.Block) store.Update

Generate creates an update based off the block received

  • streamID is the stream ID for which updates are generated
  • isEgress is true if the input blocks were sent from the client to the server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL