Exemplo n.º 1
0
        public void ChangeItems(RemoteGameObjects newObjects)
        {
            if (newObjects == null)
            {
                ChangeItemSource(null);
                return;
            }

            ListCollectionView items = newObjects.GetRootObjectsView();

            ChangeItemSource(items);
        }
        public GameObjectObservableCollection(Int32 instanceId, RemoteGameObjects context, IEnumerable <IRemotingMessage> messageCollection)
        {
            _instanceId = instanceId;
            _context    = context;
            _dispatcher = Application.Current.Dispatcher;

            foreach (IRemotingMessage item in messageCollection)
            {
                ObjectMessage message = (ObjectMessage)item;
                _keyToIndex.Add(message.InstanceId, _values.Count);
                _values.Add(Wrap(message));
            }
        }
Exemplo n.º 3
0
        private static void ProcessInput(BinaryReader br)
        {
            while (true)
            {
                RemotingMessageType type = br.ReadRemotingMessageType();
                switch (type)
                {
                case RemotingMessageType.GameObject:
                    RemoteGameObjects remoteObjects = InteractionService.RemoteGameObjects.Provide();
                    remoteObjects.ProcessGameObjectMessages(br);
                    break;

                default:
                    throw new InvalidDataException();
                }
            }
        }
Exemplo n.º 4
0
 public UIWidgetView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 5
0
        public static ObjectAbstractView Wrap(ObjectMessage message, RemoteGameObjects context)
        {
            Type type = message.GetType();

            return(Wrappers[type](message, context));
        }
Exemplo n.º 6
0
 public MessageCollection(Int32 instanceId, RemoteGameObjects context)
 {
     _instanceId = instanceId;
     _context    = context;
 }
Exemplo n.º 7
0
 public ChildCollection(RemoteGameObjects context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public MonoBehaviourView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 9
0
 public GameObjectView(GameObjectMessage message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 10
0
 public ComponentView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 11
0
 public TransformView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 12
0
 public UITableView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 13
0
 public CameraView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 14
0
 public UILabelView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 15
0
 private void RemoveItems(RemoteGameObjects oldObjects)
 {
     ChangeItems(null);
 }
Exemplo n.º 16
0
 public ScriptableObjectView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Exemplo n.º 17
0
 public UILocalizeView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }