Skip to content

Commit

Permalink
Added additional diagnostics to sending variables to game.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Nov 15, 2023
1 parent 59d8709 commit b6cef5f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,14 @@ private NamedObjectSave GetCombinedNos(NamedObjectSave nos, string glueScreenNam
return clone;
}

private string ToGameType(GlueElement element) =>
GlueState.Self.ProjectNamespace + "." + element.Name.Replace("\\", ".");
private string ToGameType(GlueElement element)
{

var projectNamespace = GlueState.Self.ProjectNamespace;

return projectNamespace + "." + element.Name.Replace("\\", ".");

}

private async Task<GlueVariableSetDataResponse> TryPushVariable(GlueVariableSetData data)
{
Expand All @@ -675,6 +681,10 @@ private async Task<GlueVariableSetDataResponse> TryPushVariable(GlueVariableSetD

private GlueVariableSetData GetGlueVariableSetDataDto(string variableOwningNosName, string rawMemberName, string type, string value, GlueElement currentElement, AssignOrRecordOnly assignOrRecordOnly, bool isState)
{
if(currentElement == null)
{
throw new ArgumentNullException(nameof(currentElement));
}
var data = new GlueVariableSetData();
data.InstanceOwnerGameType = ToGameType(currentElement);
data.Type = type;
Expand Down

0 comments on commit b6cef5f

Please sign in to comment.