Skip to content

Commit

Permalink
Merge pull request #59 from badcommandorfilename/main
Browse files Browse the repository at this point in the history
Fix added reserved keywords to DotNetNormalizer.cs
  • Loading branch information
canhorn authored Oct 14, 2021
2 parents 05dedfd + feaeb4f commit 4a919bf
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static class DotNetNormalizer
"event",
"bool",
"virtual",
"string",
"this",
"params"
};

public static string Normalize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,66 @@ namespace Examples
return __virtual;
}
}

private Vector3 __string;
public Vector3 @string
{
get
{
if(__string == null)
{
__string = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"string",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __string;
}
}

private Vector3 __this;
public Vector3 @this
{
get
{
if(__this == null)
{
__this = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"this",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __this;
}
}

private Vector3 __params;
public Vector3 @params
{
get
{
if(__params == null)
{
__params = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"params",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __params;
}
}
#endregion

#region Properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ declare module Examples {
get event(): Vector3;
get bool(): Vector3;
get virtual(): Vector3;
get string(): Vector3;
get this(): Vector3;
get params(): Vector3;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ namespace Examples
}

public ExampleClass(
string @ref, string @lock, string @unlock, string @object, string @event, string @bool, string @virtual
string @ref, string @lock, string @unlock, string @object, string @event, string @bool, string @virtual, string @string, string @params
)
{
var entity = EventHorizonBlazorInterop.New(
new string[] { "Examples", "ExampleClass" },
@ref, @lock, @unlock, @object, @event, @bool, @virtual
@ref, @lock, @unlock, @object, @event, @bool, @virtual, @string, @params
);
___guid = entity.___guid;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ declare module Examples {
object: string,
event: string,
bool: string,
virtual: string);
virtual: string,
string: string,
params: string
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,93 @@ __virtual = null;
);
}
}

private Vector3 __string;
public Vector3 @string
{
get
{
if(__string == null)
{
__string = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"string",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __string;
}
set
{
__string = null;
EventHorizonBlazorInterop.Set(
this.___guid,
"string",
value
);
}
}

private Vector3 __this;
public Vector3 @this
{
get
{
if(__this == null)
{
__this = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"this",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __this;
}
set
{
__this = null;
EventHorizonBlazorInterop.Set(
this.___guid,
"this",
value
);
}
}

private Vector3 __params;
public Vector3 @params
{
get
{
if(__params == null)
{
__params = EventHorizonBlazorInterop.GetClass<Vector3>(
this.___guid,
"params",
(entity) =>
{
return new Vector3() { ___guid = entity.___guid };
}
);
}
return __params;
}
set
{
__params = null;
EventHorizonBlazorInterop.Set(
this.___guid,
"params",
value
);
}
}
#endregion

#region Constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ declare module Examples {
event: Vector3;
bool: Vector3;
virtual: Vector3;
string: Vector3;
this: Vector3;
params: Vector3;
}
}

0 comments on commit 4a919bf

Please sign in to comment.