コード例 #1
0
 public ClothingInInventoryCon Slot(EquipmentSlotDefines.SlotFlags slotFlags, Blackboard context)
 {
     // Ideally we'd just use a variable but then if we were iterating through multiple AI at once it'd be
     // Stuffed so we need to store it on the AI's context.
     context.GetState <ClothingSlotFlagConState>().SetValue(slotFlags);
     return(this);
 }
コード例 #2
0
        public (RSI rsi, RSI.StateId stateId)? GetEquippedStateInfo(EquipmentSlotDefines.SlotFlags slot)
        {
            if (RsiPath == null)
            {
                return(null);
            }

            var rsi     = GetRSI();
            var stateId = EquippedPrefix != null ? $"{EquippedPrefix}-equipped-{slot}" : $"equipped-{slot}";

            if (rsi.TryGetState(stateId, out _))
            {
                return(rsi, stateId);
            }

            return(null);
        }
コード例 #3
0
 public ClothingInInventoryCon(EquipmentSlotDefines.SlotFlags slotFlags, IResponseCurve curve) : base(curve)
 {
     _slot = slotFlags;
 }