public void SetCollidesWith(Cv_Entity.Cv_EntityID otherID, bool state, string shapeID = null, string otherShapeID = null) { if (Owner) { CaravelApp.Instance.Logic.SetCollidesWith(Owner.ID, otherID, state, shapeID, otherShapeID); } }
protected override Cv_Entity CreateEntity(string entityTypeResource, Cv_Entity.Cv_EntityID parent, Cv_Entity.Cv_EntityID serverEntityID, string resourceBundle, Cv_SceneID sceneID, string sceneName) { return(base.CreateEntity(entityTypeResource, parent, serverEntityID, resourceBundle, sceneID, sceneName)); }
public Cv_Event_PlaySound(Cv_Entity.Cv_EntityID entityId, object sender, string soundResource, bool looping = false, float volume = 1f, float pan = 0f, float pitch = 0f, bool fade = false, float interval = 0f, bool localized = false, Vector2 emitter = default(Vector2), Vector2 listener = default(Vector2), float timeStamp = 0) : base(entityId, sender, timeStamp) { SoundResource = soundResource; Volume = volume; Pan = pan; Pitch = pitch; Fade = fade; Interval = interval; Localized = localized; Emitter = emitter; Listener = listener; Looping = looping; }
public Cv_ParticleEmitterNode(Cv_Entity.Cv_EntityID entityID, Cv_EntityComponent renderComponent, Cv_Transform to, Cv_Transform?from = null) : base(entityID, renderComponent, to, from) { m_Particles = new LinkedList <Cv_Particle>(); var particleComponent = (Cv_ParticleEmitterComponent)Component; for (var i = 0; i < MAX_PARTICLES; i++) { m_Particles.AddFirst(new Cv_Particle()); } m_iNumLiveParticles = 0; m_Random = new Random(); }
public Cv_Event_ResumeSound(Cv_Entity.Cv_EntityID entityId, string soundResource, object sender, float timeStamp = 0) : base(entityId, sender, timeStamp) { SoundResource = soundResource; }
public Cv_HolderNode(Cv_Entity.Cv_EntityID entityID) : base(entityID, null, Cv_Transform.Identity) { m_Entity = CaravelApp.Instance.Logic.GetEntity(entityID); }
public Cv_Event_PauseAllSounds(Cv_Entity.Cv_EntityID entityId, object sender, float timeStamp = 0) : base(entityId, sender, timeStamp) { }