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
packet :PacketLogin do |p| | |
p.string :name | |
end | |
packet :PlayerPhysics do |p| | |
p.uint64 :id | |
p.matrix :position | |
p.vector3 :dunno | |
end |
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
require './packet.rb' | |
packet_manager = PacketManager.build do | |
packet :PacketLogin do | |
string :name | |
end | |
packet :PlayerPhysics do | |
uint64 :id | |
matrix :position |
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 PacketLogin : Ekaiyo.Networking.Packet { | |
public string name; | |
} | |
class PlayerPhysics : Ekaiyo.Networking.Packet { | |
public UInt64 id; | |
public Matrix position; | |
public Vector3 dunno; | |
} | |
class PlayerMessage : Ekaiyo.Networking.Packet { | |
public UInt64 id; |
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; } } |
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
packet :PartyPokemonDetail do | |
uint64 :trainer_id | |
byte :party_index | |
int16 :species_id | |
bool :female | |
int32 :level | |
byte :status | |
uint32 :current_hp | |
uint32 :current_xp | |
byte :pokerus |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Ekaiyo.sources.networking | |
{ | |
class Codec | |
{ | |
#region Encoders |
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
"EEB".gsub(/(\w)\1/,'\1X\1') # "EXEB" | |
"EEEB".gsub(/(\w)\1\1/,'\1X\1Z\1') # "EXEZEB" | |
"EEEEB".gsub(/(\w)\1\1\1/,'\1X\1Z\1X\1') # "EXEZEXEB" |
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
require 'formula' | |
class Geos < Formula | |
url 'http://download.osgeo.org/geos/geos-3.3.1.tar.bz2' | |
homepage 'http://trac.osgeo.org/geos/' | |
md5 'b1ceefe205c9ee520b99f2b072c345f7' | |
def skip_clean? path | |
path.extname == '.la' | |
end |
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
--- src/operation/polygonize/EdgeRing.cpp 2011-11-16 14:47:02.000000000 +0000 | |
+++ src/operation/polygonize/EdgeRing.cpp 2011-11-16 14:48:14.000000000 +0000 | |
@@ -222,9 +222,9 @@ | |
ring=factory->createLinearRing(*ringPts); | |
} catch (const std::exception& e) { | |
// FIXME: print also ringPts | |
- std::cerr << "EdgeRing::getRingInternal: " | |
- << e.what() | |
- << endl; | |
+ // std::cerr << "EdgeRing::getRingInternal: " |
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
#include "app/controllers/posts.h" | |
#include "http/request.h" | |
#include "helpers/core.h" | |
// views | |
#include "app/views/posts/index.cc" | |
#include "app/views/posts/show.cc" | |
using app::controllers::PostsController; |
OlderNewer