Some temporary backwards compatible bits for extant Corpse Craft clients.
Narya's strict approach to over the wire compatibility is not so nice when you have cross-language clients that can't be updated at the same time as the server. Maybe we should consider a new over-the-wire format for C++ clients that is more like pbuffers, which the Narya server could translate to and from Java Streamable instances, and the C++ side could either use pbuffers directly or have a similarly change resilient I/O layer that turned over-the-wire data into C++ objects that mirrored (a potentially out of date) version of their Java counterparts. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6358 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -229,4 +229,8 @@ public class ClientObject extends DObject
|
|||||||
|
|
||||||
/** Used to reference count resolved client objects. */
|
/** Used to reference count resolved client objects. */
|
||||||
protected transient int _references;
|
protected transient int _references;
|
||||||
|
|
||||||
|
/** TEMP: a non-transient backwards compatible permission policy for extant C++ clients. */
|
||||||
|
protected com.threerings.presents.data.PermissionPolicy _ignore =
|
||||||
|
new com.threerings.presents.data.PermissionPolicy();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
//
|
||||||
|
// $Id$
|
||||||
|
//
|
||||||
|
// Narya library - tools for developing networked games
|
||||||
|
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
|
||||||
|
// http://code.google.com/p/narya/
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or modify it
|
||||||
|
// under the terms of the GNU Lesser General Public License as published
|
||||||
|
// by the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
|
import com.threerings.io.Streamable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TEMP: dummy PermissionPolicy file for backwards compatibility with C++. Going away soon.
|
||||||
|
*/
|
||||||
|
public class PermissionPolicy implements Streamable
|
||||||
|
{
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user