예제 #1
0
 public ClientCharacter(Guid id, Implementations.SSBBRenderPipeline pipeline, Vector2 position, Vector2 dimensions, Texture texture, Shader shader)
     : base(position, ComponentReplicator.PeerType.PT_Remote)
 {
     SetId(id);
     m_visual = new TexturedQuad(dimensions, texture, shader);
     pipeline.AddRenderable(m_visual, Implementations.SSBBRenderPipeline.LayerIdentifiers.LI_Characters, 0);
 }
예제 #2
0
 public PlayerControlledCharacter(Guid id, Implementations.SSBBRenderPipeline pipeline, Vector2 position, Vector2 dimensions, Texture texture, Shader shader)
     : base(pipeline, position, dimensions, texture, shader, ComponentReplicator.PeerType.PT_Local)
 {
     SetId(id);
 }