User Tools

Site Tools


pf:prpl:docs:getallconnectedparticles

This is an old revision of the document!


~~DISCUSSION~~ <- Alpha List of Commands <-class link <-PRPL home <- Game 4 home

command

Raw Code

case STATEMENT.GETALLCONNECTEDPARTICLES:
                    i1 = GetIntFromStack(); 
                    {
                        ParticleBase p = Particles.GetParticleByUID(i1);
                        if (p != null && p is Particle) {
                            HashSet<Particle> results = (p as Particle).GetAllConnected();
                            foreach (Particle rp in results) {
                                stack.Push(new Data(rp.UID));
                            }
                            stack.Push(new Data(results.Count));
                        } else {
                            stack.Push(new Data(0));
                        }
                    }
                    break;
ArgumentsResultNotation
i1 i2 f4 f3 f2 f1 –

How to use

Standard CRPL arguments command
Warp notation command (arguments)

Description

programming notes

Examples

ShowTraceLog

Same example in Warp notation:

showtracelog
pf/prpl/docs/getallconnectedparticles.1425484507.txt.gz · Last modified: 2025/02/14 14:56 (external edit)