* renamed MySceneObject to CpuCounterObject
parent
b07c29cbb5
commit
fea3c20576
|
@ -9,11 +9,11 @@ using System.Diagnostics;
|
||||||
|
|
||||||
namespace SimpleApp
|
namespace SimpleApp
|
||||||
{
|
{
|
||||||
public class MySceneObject : SceneObject
|
public class CpuCounterObject : SceneObject
|
||||||
{
|
{
|
||||||
private PerformanceCounter m_counter;
|
private PerformanceCounter m_counter;
|
||||||
|
|
||||||
public MySceneObject(Scene world, EventManager eventManager, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape)
|
public CpuCounterObject(Scene world, EventManager eventManager, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape)
|
||||||
: base(world, eventManager, ownerID, localID, pos, shape )
|
: base(world, eventManager, ownerID, localID, pos, shape )
|
||||||
{
|
{
|
||||||
String objectName = "Processor";
|
String objectName = "Processor";
|
|
@ -62,7 +62,7 @@ namespace SimpleApp
|
||||||
shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f);
|
shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f);
|
||||||
LLVector3 pos = new LLVector3(138, 129, 27);
|
LLVector3 pos = new LLVector3(138, 129, 27);
|
||||||
|
|
||||||
SceneObject m_sceneObject = new MySceneObject(scene, scene.EventManager, LLUUID.Zero, scene.PrimIDAllocate(), pos, shape);
|
SceneObject m_sceneObject = new CpuCounterObject(scene, scene.EventManager, LLUUID.Zero, scene.PrimIDAllocate(), pos, shape);
|
||||||
scene.AddEntity(m_sceneObject);
|
scene.AddEntity(m_sceneObject);
|
||||||
|
|
||||||
MyNpcCharacter m_character = new MyNpcCharacter( scene.EventManager );
|
MyNpcCharacter m_character = new MyNpcCharacter( scene.EventManager );
|
||||||
|
|
Loading…
Reference in New Issue