MCPcopy Create free account
hub / github.com/CleanCut/invaders / new

Method new

src/score.rs:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8impl Score {
9 pub fn new() -> Self {
10 Self { count: 0 }
11 }
12
13 pub fn add_points(&mut self, amount: u16) {
14 self.count += amount;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected