Skip to content

Commit

Permalink
Ran dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus4880 committed Jan 26, 2025
1 parent 6221d1e commit a1b46b8
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemFactoryDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ private ItemFactoryDatabase()
{
itemTemplates = new ThreadDictionary<MongoId, ItemTemplate>();
}
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemFactoryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public void Load()

_itemFactoryOrm.SetItemTemplates(itemTemplates);
}
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemFactoryOrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public ItemTemplate GetItemTemplate(MongoId id)
{
return _itemFactoryDatabase.itemTemplates.TryGet(id, out var itemTemplate) ? itemTemplate : null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public class CompoundItemItemProperties : ItemProperties

[DataMember(Name = "ForbidNonEmptyContainers")]
public bool ForbidNonEmptyContainers;
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/EEquipmentSlot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public enum EEquipmentSlot
Earpiece,
Dogtag,
ArmBand
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/Grid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public class Grid

[DataMember(Name = "_proto")]
public string Proto { get; set; }
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/GridProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public class GridProperties

[DataMember(Name = "isSortingTable")]
public bool IsSortingTable { get; set; }
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/Slot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ public class Slot
// because I am not nor have I ever been sure of what proto even is
// -- nexus4880, 2024-10-18
public string Proto { get; set; }
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/SlotProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public class SlotProperties
{
[DataMember(Name = "filters")]
public List<SlotPropertiesFilter> Filters { get; set; }
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/ItemTemplates/SlotPropertiesFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public class SlotPropertiesFilter

[DataMember(Name = "locked", EmitDefaultValue = false)]
public bool? Locked { get; set; }
}
}
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/Models/Items/ItemInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ public void InitializeMatrices(IList<Grid> grids, IList<ItemInstance> children)
}

public Dictionary<string, bool[,]> Matrices { get; } = [];
}
}
4 changes: 2 additions & 2 deletions Fuyu.Backend.BSG/Models/Profiles/InventoryInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ private void OnDeserialized(StreamingContext _)
var itemService = ItemService.Instance;

ItemsMap = _itemsForSerialization.ToDictionary(i => i.Id);

foreach (var item in Items)
{
var props = itemFactoryService.GetItemProperties<CompoundItemItemProperties>(item.TemplateId);

if (props.Grids.Count > 0)
{
var items = itemService.GetItemAndChildren(Items, item);
Expand Down
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/Services/ItemFactoryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public T GetItemProperties<T>(ItemTemplate template) where T : ItemProperties
{
var reader = template.Props.CreateReader();
var serializer = JsonSerializer.Create(Json.jsonSerializerSettings);

return serializer.Deserialize<T>(reader);
}

Expand Down
2 changes: 1 addition & 1 deletion Fuyu.Backend.BSG/Services/ItemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public List<ItemInstance> GetItemAndChildren(List<ItemInstance> items, MongoId i
if (root.Size == null)
{
var rootProperties = _itemFactoryService.GetItemProperties<CompoundItemItemProperties>(root.TemplateId);

var width = rootProperties.Width;
var height = rootProperties.Height;

Expand Down
6 changes: 3 additions & 3 deletions Fuyu.Backend.Core/CoreOrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public int GetSession(string sessionId)
{
if (!_coreDatabase.Sessions.TryGet(sessionId, out var id))
{
// I don't want to have to restart the launcher every time I need a new session
// -- nexus4880, 2025-1-26
// I don't want to have to restart the launcher every time I need a new session
// -- nexus4880, 2025-1-26
#if DEBUG
_coreDatabase.Sessions.Set(sessionId, id);
#else
Expand All @@ -118,5 +118,5 @@ public void RemoveSession(string sessionId)
{
_coreDatabase.Sessions.Remove(sessionId);
}
#endregion
#endregion
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public override async Task RunAsync(EftHttpContext context, JObject request)
{
var action = itemRequest.Value<string>("Action");
var itemEventContext = new ItemEventContext(sessionId, action, requestIndex, itemRequest, itemEventResponse);

try
{
await ItemEventRouter.RouteAsync(itemEventContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ private void GenerateOffers()

Terminal.WriteLine($"Done generating weapons: {sw.ElapsedMilliseconds}ms, {created} succeeded and {failed} failed");
}
}
}

0 comments on commit a1b46b8

Please sign in to comment.