User Tools

Site Tools


prpl:getallconnectedbonds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

prpl:getallconnectedbonds [2016/12/02 18:34] – external edit 127.0.0.1prpl:getallconnectedbonds [2018/06/17 14:48] (current) – added description kajacx
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#particles|Particles]]
  
-=====  GETALLCONNECTEDBONDS  =====+=====  GetAllConnectedBonds  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+pid bid* count | [ int int* int] |
  
  
 === Description === === Description ===
 +Gets all bonds that are connected to this particle in a chain. All the bond ids are pushed on top of the stack, with the total count pushed on top of it, similar to [[prpl:getcoreswithvar|GETCORESWITHVAR]].
  
 === Examples === === Examples ===
-<code> i1 = GetIntFromStack();  +<code prpl
- stack.Push(new Data(b.UID));  +# destroy all bonds 
- stack.Push(new Data(results.Count));  +<-pid GetAllConnectedBonds 0 do 
- } else {  +    DestroyBond 
- stack.Push(new Data(0));  +loop
- +
 </code> </code>
  
prpl/getallconnectedbonds.1480721644.txt.gz · Last modified: 2016/12/02 18:34 by 127.0.0.1