Пример #1
0
        // Token: 0x060017C0 RID: 6080 RVA: 0x0002A62C File Offset: 0x0002962C
        public PointOfInterest Create(uint key, uint poiType, Vector3 position, float rotation)
        {
            InternalInstance internalInstance = InstanceCatalog.Get().Find(poiType);

            if (null != internalInstance)
            {
                PointOfInterest pointOfInterest = new PointOfInterest(this.manager, key, internalInstance, position, rotation);
                this.pointsOfInterest.Add(pointOfInterest);
                return(pointOfInterest);
            }
            return(null);
        }
Пример #2
0
        // Token: 0x060017C8 RID: 6088 RVA: 0x0002A870 File Offset: 0x00029870
        internal PointOfInterest(Manager manager, uint key, InternalInstance poiType, Vector3 position, float rotation)
        {
            this.manager = manager;
            this.key     = key;
            this.poi     = new Collection(poiType);
            this.token   = manager.StreamingMonitor.Create(position, 0f);
            this.token.Listen(this);
            this.behaviorContainer = new InternalBehaviorContainer(poiType);
            uint mBits = this.poi.PointOfInterestBehavior().mBits;

            if ((mBits & 1u) != 0u)
            {
                this.icon = manager.IconManager.Create(position, poiType.GetCollection(), rotation);
            }
        }
Пример #3
0
        // Token: 0x060016F9 RID: 5881 RVA: 0x00028390 File Offset: 0x00027390
        public virtual void ActivateReferenced(InternalInstance referrer)
        {
            if (null != referrer)
            {
                uint flag            = 128u;
                uint connectionCount = referrer.GetConnectionCount();
                uint num             = 0u;
                while (num < connectionCount)
                {
                    InternalInstance connectionAt = referrer.GetConnectionAt(num);
                    if ((!connectionAt.IsTypeOf(ObjType.kObjType_Trigger) && !connectionAt.IsTypeOf(ObjType.kObjType_Marker)) || !connectionAt.IsFlagSet(flag))
                    {
                        goto IL_E3;
                    }
                    Collection r = new Collection(connectionAt);
                    if (!this.PointsOfInterest.Exists((PointOfInterest t) => t.Equals(r.GetCollection(), r.PointOfInterest().GetCollectionKey())))
                    {
                        PointOfInterest pointOfInterest = this.Manager.PointsOfInterest.Create(r.GetCollection(), r.PointOfInterest().GetCollectionKey(), r.Position(), r.Rotation());
                        if (pointOfInterest != null)
                        {
                            pointOfInterest.LoadBehaviors(connectionAt.BehaviorOwner());
                            this.PointsOfInterest.Add(pointOfInterest);
                            pointOfInterest.Enable();
                            goto IL_E3;
                        }
                        goto IL_E3;
                    }
IL_EA:
                    num += 1u;
                    continue;
IL_E3:
                    this.ActivateReferenced(connectionAt);
                    goto IL_EA;
                }
            }
        }
 // Token: 0x060001A9 RID: 425 RVA: 0x00003D10 File Offset: 0x00002D10
 public InternalInstance GetInstance()
 {
     return(InternalInstance.CreateInitUnowned(InstanceIterator._EASharpBinding_125(this.mSelf)));
 }
 // Token: 0x060000AB RID: 171 RVA: 0x00002BAC File Offset: 0x00001BAC
 public bool IsTypeOf(ObjType type)
 {
     return(InternalInstance._EASharpBinding_194(this.mSelf, (int)type));
 }
 // Token: 0x060000A9 RID: 169 RVA: 0x00002B9E File Offset: 0x00001B9E
 public override void LoadSync()
 {
     InternalInstance._EASharpBinding_193(this.mSelf);
 }
 // Token: 0x060000A7 RID: 167 RVA: 0x00002B84 File Offset: 0x00001B84
 public override bool IsValid()
 {
     return(InternalInstance._EASharpBinding_192(this.mSelf));
 }
 // Token: 0x060000A5 RID: 165 RVA: 0x00002B76 File Offset: 0x00001B76
 public void UnRegister()
 {
     InternalInstance._EASharpBinding_191(this.mSelf);
 }
Пример #9
0
 // Token: 0x06000199 RID: 409 RVA: 0x00003BF8 File Offset: 0x00002BF8
 public InternalInstance Find(uint key)
 {
     return(InternalInstance.CreateInitUnowned(InstanceCatalog._EASharpBinding_119(this.mSelf, key)));
 }
Пример #10
0
 // Token: 0x060000B7 RID: 183 RVA: 0x00002C5C File Offset: 0x00001C5C
 public static int GetInstanceCount(ObjType type)
 {
     return(InternalInstance._EASharpBinding_200((int)type));
 }
Пример #11
0
 // Token: 0x060000B5 RID: 181 RVA: 0x00002C3C File Offset: 0x00001C3C
 public virtual IInternalBehaviorOwner BehaviorOwner()
 {
     return(IInternalBehaviorOwner.CreateInitUnowned(InternalInstance._EASharpBinding_199(this.mSelf)));
 }
Пример #12
0
 // Token: 0x060000B3 RID: 179 RVA: 0x00002C1C File Offset: 0x00001C1C
 public InternalInstance GetConnectionAt(uint index)
 {
     return(InternalInstance.CreateInitUnowned(InternalInstance._EASharpBinding_198(this.mSelf, index)));
 }
Пример #13
0
 // Token: 0x060000B1 RID: 177 RVA: 0x00002C00 File Offset: 0x00001C00
 public uint GetConnectionCount()
 {
     return(InternalInstance._EASharpBinding_197(this.mSelf));
 }
Пример #14
0
 // Token: 0x060000AF RID: 175 RVA: 0x00002BE4 File Offset: 0x00001BE4
 public bool IsFlagSet(uint flag)
 {
     return(InternalInstance._EASharpBinding_196(this.mSelf, flag));
 }
Пример #15
0
        // Token: 0x060016F8 RID: 5880 RVA: 0x00028340 File Offset: 0x00027340
        public virtual void ActivateReferencedTriggers()
        {
            InternalInstance referrer = InstanceCatalog.Get().Find(this.EventKey);

            this.ActivateReferenced(referrer);
        }
Пример #16
0
 // Token: 0x060000A3 RID: 163 RVA: 0x00002B68 File Offset: 0x00001B68
 public void Register(IAttributeChanged changed)
 {
     InternalInstance._EASharpBinding_190(this.mSelf, changed);
 }
Пример #17
0
 // Token: 0x060001AF RID: 431 RVA: 0x00003D70 File Offset: 0x00002D70
 public InternalBehaviorContainer(InternalInstance instance) : base(default(ExposeTag_NoInitOwned))
 {
     this.mSelf = InternalBehaviorContainer._EASharpBinding_126(object.ReferenceEquals(instance, null) ? null : instance._GetRaw());
 }