public ClientCharacter(Implementations.SSBBRenderPipeline pipeline, Vector2 position, Vector2 dimensions, Texture texture, Shader shader, ComponentReplicator.PeerType peertype) : base(position, peertype) { m_visual = new TexturedQuad(dimensions, texture, shader); pipeline.AddRenderable(m_visual, Implementations.SSBBRenderPipeline.LayerIdentifiers.LI_Characters, 0); }
public SSBBCharacter(Vector2 position, ComponentReplicator.PeerType peerType) { GetComponents().AddComponent(new ComponentTransform(position)); GetComponents().AddComponentAsType(new Components.CharacterReplicator(peerType), typeof(ComponentReplicator)); }