Exemplo n.º 1
0
 public static void SendTrackData(TrackData trackData)
 {
     EntityTracking entityTracking = ActorSystem.instance.Find ("EntityTracking") as EntityTracking;
     ActorSystem.sendImmediate = true;
     entityTracking.Update (trackData);
     ActorSystem.sendImmediate = false;
 }
Exemplo n.º 2
0
            public void UpdateTracking() {

                TrackData td = new TrackData();
                td.x = -2;
                td.y = -2;
                td.z = 1;
                td.neighborEntityType = TrackData.EntityType.ALL;

                gameEntityManager.UpdateTracking(td);
            }
Exemplo n.º 3
0
        public void Update(TrackData trackData)
        {
            if (trackData == null) {
                return;
            }

            trackData.id = GameMachine.Core.User.Instance.username;
            if (trackData.entityType == null) {
                trackData.entityType = TrackData.EntityType.PLAYER;
            }

            Entity entity = new Entity ();
            entity.id = "0";
            entity.trackData = trackData;

            // Always regional
            ActorSystem.instance.FindRegional ("default").Tell (entity);
        }