From a985043d48a0082bd9171a2f1052d0dd5cac06ae Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 9 Dec 2010 22:27:57 +0000 Subject: [PATCH] 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 --- .../presents/data/ClientObject.java | 4 +++ .../presents/data/PermissionPolicy.java | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/main/java/com/threerings/presents/data/PermissionPolicy.java diff --git a/src/main/java/com/threerings/presents/data/ClientObject.java b/src/main/java/com/threerings/presents/data/ClientObject.java index 655c780b5..c71285a0b 100644 --- a/src/main/java/com/threerings/presents/data/ClientObject.java +++ b/src/main/java/com/threerings/presents/data/ClientObject.java @@ -229,4 +229,8 @@ public class ClientObject extends DObject /** Used to reference count resolved client objects. */ 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(); } diff --git a/src/main/java/com/threerings/presents/data/PermissionPolicy.java b/src/main/java/com/threerings/presents/data/PermissionPolicy.java new file mode 100644 index 000000000..83685522c --- /dev/null +++ b/src/main/java/com/threerings/presents/data/PermissionPolicy.java @@ -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 +{ +}