Created
June 19, 2011 20:18
-
-
Save hugopeixoto/1034696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpawnRequest : Ekaiyo.Networking.Packet { | |
public override int DecodingSize { get { return 5; } } | |
public override int EncodingSize { get { return 5; } } | |
public Int32 unique_id; | |
public SpawnRequest (Int32 a_unique_id) : base(PacketType.SpawnRequest) { | |
this.unique_id = a_unique_id | |
} | |
} | |
class MapItem : Ekaiyo.Networking.Packet { | |
public override int DecodingSize { get { return 69; } } | |
public override int EncodingSize { get { return 69 + name.Length; } } | |
public Int32 id; | |
public Matrix transformation; | |
public string name; | |
public MapItem (Int32 a_id, Matrix a_transformation, string a_name) : base(PacketType.MapItem) { | |
this.id = a_id | |
this.transformation = a_transformation | |
this.name = a_name | |
} | |
} | |
class OpponentPokemonDetail : Ekaiyo.Networking.Packet { | |
public override int DecodingSize { get { return 22; } } | |
public override int EncodingSize { get { return 22 + nickname.Length; } } | |
public UInt64 trainer_id; | |
public byte party_index; | |
public Int16 species_id; | |
public bool female; | |
public Int32 level; | |
public byte status; | |
public float hp_ratio; | |
public string nickname; | |
public OpponentPokemonDetail (UInt64 a_trainer_id, byte a_party_index, Int16 a_species_id, bool a_female, Int32 a_level, byte a_status, float a_hp_ratio, string a_nickname) : base(PacketType.OpponentPokemonDetail) { | |
this.trainer_id = a_trainer_id | |
this.party_index = a_party_index | |
this.species_id = a_species_id | |
this.female = a_female | |
this.level = a_level | |
this.status = a_status | |
this.hp_ratio = a_hp_ratio | |
this.nickname = a_nickname | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment