Finished the job of splitting Narya into submodules.
The ActionScript code is now under aslib and is built via Maven (and Ant). The CPP code is under cpplib and is ignored by everything (other than service generation), but now at least it's not crufting up the Java submodule with its XCode project. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6783 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "presents/stable.h"
|
||||
#include "Name.h"
|
||||
|
||||
using namespace util;
|
||||
|
||||
DEFINE_STREAMABLE("com.threerings.util.Name", Name);
|
||||
|
||||
void Name::readObject (ObjectInputStream& in)
|
||||
{
|
||||
name = in.readField< utf8 >();
|
||||
}
|
||||
|
||||
void Name::writeObject (ObjectOutputStream& out) const
|
||||
{
|
||||
out.writeField(name);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "presents/Streamable.h"
|
||||
#include "presents/ObjectInputStream.h"
|
||||
#include "presents/ObjectOutputStream.h"
|
||||
#include "presents/streamers/StreamableStreamer.h"
|
||||
|
||||
#include "presents/Streamable.h"
|
||||
|
||||
namespace util {
|
||||
|
||||
class Name : public Streamable {
|
||||
public:
|
||||
DECLARE_STREAMABLE();
|
||||
|
||||
Shared<utf8> name;
|
||||
|
||||
virtual void readObject(ObjectInputStream& in);
|
||||
virtual void writeObject(ObjectOutputStream& out) const;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user