Esempio n. 1
0
        // Do we need a record of ownership or do we assume clients are honest?
        public HeadlessServer(NetworkServer ns, Entity level)
        {
            this.networkServer = ns;

            state.root.addChild(level);

            StateChange createLevel = new StateChange();
            createLevel.type = StateChangeType.CREATE_LEVEL;

            if (level is TestLevel)
            {
                createLevel.stringProperties.Add(StateProperties.LEVEL_TYPE, "testlevel");
            }
        }
Esempio n. 2
0
        public static StateChange GetStateData(byte[] b)
        {
            StateChange ret = new StateChange(b);

            return ret;
        }