Пример #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));
            }
        }
Пример #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();
                }
            }
        }
Пример #4
0
 public UIWidgetView(T message, RemoteGameObjects context)
     : base(message, context)
 {
 }
Пример #5
0
        public static ObjectAbstractView Wrap(ObjectMessage message, RemoteGameObjects context)
        {
            Type type = message.GetType();

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