Esempio n. 1
0
        public static void Prefix(GameModel __instance, long actorId, GameObject gameObj, bool skipNotify)
        {
            var potentialTag = PersistentAmmoManager.GetPotentialDataTag(gameObj);

            if (potentialTag != null)
            {
                ExtendedData.extendedActorData[actorId] = potentialTag;
            }
        }
Esempio n. 2
0
        public static void Prefix(GameModel __instance, long actorId, GameObject gameObj, bool skipNotify)
        {
            var potentialTag = PersistentAmmoManager.GetPotentialDataTag(gameObj);

            if (potentialTag != null)
            {
                ExtendedData.preparedData[DataIdentifier.GetActorIdentifier(actorId)] = new ExtendedData.PreparedData()
                {
                    SourceType = ExtendedData.PreparedData.PreparationSource.AMMO, Data = potentialTag
                };
            }
        }