Merge pull request #152 from SHADE-DP/SP3-6-c-scripting

Added EntityID retrieval from GameObject and compiled docs for Intellisense in C# projects
This commit is contained in:
XiaoQiDigipen 2022-11-01 15:35:46 +08:00 committed by GitHub
commit e8553b6181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14569 additions and 1 deletions

View File

@ -72,6 +72,10 @@ namespace SHADE
}
return node->IsActive();
}
Entity GameObject::EntityId::get()
{
return entity;
}
/*---------------------------------------------------------------------------------*/
/* GameObject Property Functions */

View File

@ -86,6 +86,13 @@ namespace SHADE
{
bool get();
}
/// <summary>
/// Native Entity ID value for this GameObject.
/// </summary>
property Entity EntityId
{
Entity get();
}
/*-----------------------------------------------------------------------------*/
/* GameObject Property Functions */

View File

@ -38,7 +38,6 @@ public class PhysicsTest : Script
RigidBody.AddForce(Force);
Debug.Log($"Jump!");
}
Debug.Log($"{Transform.LocalPosition.y}");
}
protected override void fixedUpdate()

1029
bin/Debug/SHADE_CSharp.xml Normal file

File diff suppressed because it is too large Load Diff

6250
bin/Debug/SHADE_Managed.xml Normal file

File diff suppressed because it is too large Load Diff

1029
bin/Release/SHADE_CSharp.xml Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff