Skip to content

Instantly share code, notes, and snippets.

@hugopeixoto
Created June 19, 2011 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugopeixoto/1034525 to your computer and use it in GitHub Desktop.
Save hugopeixoto/1034525 to your computer and use it in GitHub Desktop.
require './packet.rb'
packet_manager = PacketManager.build do
packet :PacketLogin do
string :name
end
packet :PlayerPhysics do
uint64 :id
matrix :position
vector3 :dunno
end
packet :PlayerMessage do
uint64 :id
string :message
end
packet :WildPokemonMatrix do
matrix :position
int32 :dunno
end
packet :WildPokemonSpawn do
matrix :dunno
int32 :dunno
int32 :dunno
string :dunno
end
packet :SpawnRequest do
int32 :dunno
end
packet :MapItem do
int32 :dunno
matrix :dunno
string :dunno
end
packet :OpponentPokemonDetail do
byte :dunno
byte :dunno
int16 :dunno
int32 :dunno
bool :dunno
float :dunno
string :nickname
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment