MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Scripting_GetFollowers

Method Scripting_GetFollowers

modules/follow/follow.go:99–108  ·  view source on GitHub ↗

Intended to be invoked by a script.

(targetActor scripting.ScriptActor)

Source from the content-addressed store, hash-verified

97
98// Intended to be invoked by a script.
99func (f *FollowModule) Scripting_GetFollowers(targetActor scripting.ScriptActor) []*scripting.ScriptActor {
100
101 results := []*scripting.ScriptActor{}
102
103 for _, f := range f.getFollowers(followId{mobInstanceId: targetActor.InstanceId()}) {
104 results = append(results, scripting.GetActor(f.userId, f.mobInstanceId))
105 }
106
107 return results
108}
109
110// Get all followeres attached to a target
111func (f *FollowModule) isFollowing(followCheck followId) bool {

Callers

nothing calls this directly

Calls 3

getFollowersMethod · 0.95
GetActorFunction · 0.92
InstanceIdMethod · 0.80

Tested by

no test coverage detected